mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-25 06:58:18 +08:00
make bitswap tests pass again with the race detector enabled
fixes #2444 License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
@ -108,7 +108,7 @@ func TestLargeSwarm(t *testing.T) {
|
|||||||
if detectrace.WithRace() {
|
if detectrace.WithRace() {
|
||||||
// when running with the race detector, 500 instances launches
|
// when running with the race detector, 500 instances launches
|
||||||
// well over 8k goroutines. This hits a race detector limit.
|
// well over 8k goroutines. This hits a race detector limit.
|
||||||
numInstances = 100
|
numInstances = 75
|
||||||
} else if travis.IsRunning() {
|
} else if travis.IsRunning() {
|
||||||
numInstances = 200
|
numInstances = 200
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user