diff options
author | algochoi <86622919+algochoi@users.noreply.github.com> | 2023-02-14 14:47:47 -0500 |
---|---|---|
committer | algochoi <86622919+algochoi@users.noreply.github.com> | 2023-02-14 14:47:47 -0500 |
commit | 906982b47a60e0f3a39478fef3faaf2df65789d4 (patch) | |
tree | 6f2f57a79ff98197e43a82c0ef59e8ff44729231 | |
parent | 7c1676b1ffad9da98971baacde787a0467beb214 (diff) |
Remove parallelism from tests that touch genesis filesparallelize_gen
-rw-r--r-- | gen/generate_test.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gen/generate_test.go b/gen/generate_test.go index 53e4d2ec5..a9f2a544c 100644 --- a/gen/generate_test.go +++ b/gen/generate_test.go @@ -19,7 +19,6 @@ package gen import ( "encoding/json" "fmt" - "github.com/algorand/go-algorand/data/basics" "io" "os" "path/filepath" @@ -27,6 +26,8 @@ import ( "sync" "testing" + "github.com/algorand/go-algorand/data/basics" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -129,9 +130,8 @@ func TestGenesisRoundoff(t *testing.T) { // * For each `testCase`, there is a corresponding `genesis.json` in `gen/resources` representing the known, valid output. // * When adding test cases, it's assumed folks peer review new artifacts in `gen/resources`. // * Since _some_ `genesis.json` values are non-deterministic, the test replaces these values with static values to facilitate equality checks. -func TestGenesisJsonCreation(t *testing.T) { +func TestGenesisJsonCreation(t *testing.T) { //nolint:paralleltest // Do not parallelize GenerateGenesisFiles(). partitiontest.PartitionTest(t) - t.Parallel() type testCase struct { name string @@ -234,14 +234,13 @@ func TestGenesisJsonCreation(t *testing.T) { } } - for _, tc := range []testCase{ + for _, tc := range []testCase{ //nolint:paralleltest // Do not parallelize GenerateGenesisFiles(). base(), balance(), testnet(), } { tc := tc t.Run(fmt.Sprintf("name=%v", tc.name), func(t *testing.T) { - t.Parallel() gd := tc.gd gd.LastPartKeyRound = uint64(quickLastPartKeyRound) |