Преглед на файлове

Set a timeout on the integration tests

Ben Hood преди 11 години
родител
ревизия
2c501635b4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      integration.sh

+ 1 - 1
integration.sh

@@ -24,7 +24,7 @@ function run_tests() {
 		proto=1
 	fi
 
-	go test -tags integration -cover -v -runssl -proto=$proto -rf=3 -cluster=$(ccm liveset) -clusterSize=$clusterSize -autowait=2000ms ./... | tee results.txt
+	go test -timeout 3m -tags integration -cover -v -runssl -proto=$proto -rf=3 -cluster=$(ccm liveset) -clusterSize=$clusterSize -autowait=2000ms ./... | tee results.txt
 
 	cover=`cat results.txt | grep coverage: | grep -o "[0-9]\{1,3\}" | head -n 1`
 	if [[ $cover -lt "60" ]]; then