mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
Parallelize all the tests in ForAllNets (#1199)
This commit is contained in:
parent
0d8f7bba40
commit
3354ac67c8
@ -18,8 +18,11 @@ func ForAllNets(t *testing.T, skipPow bool, testFunc func(*testing.T, *dagconfig
|
||||
|
||||
for _, params := range allParams {
|
||||
paramsCopy := params
|
||||
paramsCopy.SkipProofOfWork = skipPow
|
||||
t.Logf("Running test for %s", params.Name)
|
||||
testFunc(t, ¶msCopy)
|
||||
t.Run(paramsCopy.Name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
paramsCopy.SkipProofOfWork = skipPow
|
||||
t.Logf("Running test for %s", paramsCopy.Name)
|
||||
testFunc(t, ¶msCopy)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user