Skip to content

Commit

Permalink
fix|test(share): add one option to bitstwap in the test suite to stab…
Browse files Browse the repository at this point in the history
…ilize test
  • Loading branch information
Wondertan committed Jun 24, 2022
1 parent 46bebf3 commit 0657854
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions service/share/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ func (dn *dagNet) Node() *node {
bitswap.EngineBlockstoreWorkerCount(1), // otherwise it spawns 128 routines which is too much for tests
bitswap.EngineTaskWorkerCount(2),
bitswap.TaskWorkerCount(2),
bitswap.SetSimulateDontHavesOnTimeout(false),
bitswap.SetSendDontHaves(false),
)
nd := &node{BlockService: blockservice.New(bstore, bs), Host: hst}
dn.nodes = append(dn.nodes, nd)
Expand Down

0 comments on commit 0657854

Please sign in to comment.