Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

Commit 137be00

Browse files
committed
tests: Increase unit tests timeout.
Add unit tests timeout similar to github.com/clearcontainers/runtime/pull/618 Signed-off-by: Jose Carlos Venegas Munoz <[email protected]>
1 parent a39361b commit 137be00

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.ci/go-test.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ script_dir=$(cd `dirname $0`; pwd)
44
root_dir=`dirname $script_dir`
55

66
test_packages=('.;.,./client' './api;./api')
7-
go_test_flags="-v -race -timeout 2s"
7+
8+
# Set default test run timeout value.
9+
#
10+
# CC_GO_TEST_TIMEOUT can be set to any value accepted by
11+
# "go test -timeout X"
12+
timeout_value=${CC_GO_TEST_TIMEOUT:-10s}
13+
14+
go_test_flags="-v -race -timeout $timeout_value"
815

916
echo Running go test on packages "'$test_packages'" with flags "'$go_test_flags'"
1017

0 commit comments

Comments
 (0)