Skip to content

Commit

Permalink
Set a timeout on the integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0x6e6562 committed Oct 30, 2014
1 parent 5834cd1 commit 2c50163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c50163

Please sign in to comment.