Skip to content

Commit ac682ba

Browse files
committed
update test tool
Signed-off-by: Xiang Dai <[email protected]>
1 parent 7863579 commit ac682ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ go test -i "${GO_TEST_ARGS[@]}" "${TESTDIRS[@]}"
106106
run_test() {
107107
local dir=$1
108108
if [ -z "$NO_GO_GET" ]; then
109-
go get -t -tags "${TAGS[@]}" "$dir"
109+
GO111MODULE=on go get -t -tags "${TAGS[@]}" "$dir"
110110
fi
111111

112112
local GO_TEST_ARGS_RUN=("${GO_TEST_ARGS[@]}")
@@ -149,7 +149,7 @@ if [ -n "$PARALLEL" ]; then
149149
fi
150150

151151
if [ -n "$SLOW" ] && [ -z "$COVERDIR" ]; then
152-
go get github.com/weaveworks/tools/cover
152+
GO111MODULE=on go get github.com/weaveworks/tools/cover
153153
cover "$coverdir"/* >profile.cov
154154
rm -rf "$coverdir"
155155
go tool cover -html=profile.cov -o=coverage.html

0 commit comments

Comments
 (0)