Quellcode durchsuchen

Set a timeout on the integration tests

Ben Hood vor 11 Jahren
Ursprung
Commit
2c501635b4
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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