瀏覽代碼

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