Skip to content

Commit e8b6a5e

Browse files
authored
Randomize unit test execution order to identify unwanted dependencies (#1565)
1 parent d6004f2 commit e8b6a5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ AVALANCHE_PATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )"; cd .. && pwd )
99
# Load the constants
1010
source "$AVALANCHE_PATH"/scripts/constants.sh
1111

12-
go test -race -timeout="120s" -coverprofile="coverage.out" -covermode="atomic" $(go list ./... | grep -v /mocks | grep -v proto | grep -v tests)
12+
go test -shuffle=on -race -timeout="120s" -coverprofile="coverage.out" -covermode="atomic" $(go list ./... | grep -v /mocks | grep -v proto | grep -v tests)

0 commit comments

Comments
 (0)