From b1422777763d6001617746985f23575dc5347189 Mon Sep 17 00:00:00 2001 From: Orpheus Lummis Date: Wed, 22 Jun 2022 17:25:05 -0500 Subject: [PATCH 1/3] chore: Enable random execution order of tests --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 11a14af04e..93c82f26a8 100644 --- a/Makefile +++ b/Makefile @@ -88,7 +88,7 @@ clean\:test: .PHONY: test test: - go test ./... -race + go test ./... -race -shuffle=on .PHONY: test\:clean test\:clean: From b19a60853cec3c25f54f34334bb4cd2d1f60462b Mon Sep 17 00:00:00 2001 From: Orpheus Lummis Date: Wed, 22 Jun 2022 17:31:31 -0500 Subject: [PATCH 2/3] enable on CircleCI --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 937e75964d..45c0db5614 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -37,7 +37,7 @@ commands: name: Run tests command: | mkdir -p /tmp/test-reports - gotestsum --junitfile /tmp/test-reports/unit-tests.xml -- ./... -race + gotestsum --junitfile /tmp/test-reports/unit-tests.xml -- ./... -race --shuffle=on environment: DEFRA_BADGER_MEMORY: true DEFRA_BADGER_FILE: true From a62e55b04773d99559058457dd76740bf1bb83c2 Mon Sep 17 00:00:00 2001 From: Orpheus Lummis Date: Mon, 27 Jun 2022 08:53:00 -0400 Subject: [PATCH 3/3] Update .circleci/config.yml Co-authored-by: Shahzad Lone --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 45c0db5614..c87767a8fc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -37,7 +37,7 @@ commands: name: Run tests command: | mkdir -p /tmp/test-reports - gotestsum --junitfile /tmp/test-reports/unit-tests.xml -- ./... -race --shuffle=on + gotestsum --junitfile /tmp/test-reports/unit-tests.xml -- ./... -race -shuffle=on environment: DEFRA_BADGER_MEMORY: true DEFRA_BADGER_FILE: true