Browse Source

Merge branch 'master' into wb/epoch-fixes-forward-port-master

pull/8139/head
mergify[bot] 3 years ago
committed by GitHub
parent
commit
dfe8b5824f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      internal/mempool/reactor_test.go

+ 5
- 5
internal/mempool/reactor_test.go View File

@ -139,14 +139,14 @@ func (rts *reactorTestSuite) waitForTxns(t *testing.T, txs []types.Tx, ids ...ty
}
wg.Add(1)
go func(pool *TxMempool) {
go func(name types.NodeID, pool *TxMempool) {
defer wg.Done()
require.Eventually(t, func() bool { return len(txs) == pool.Size() },
time.Minute,
250*time.Millisecond,
"ntx=%d, size=%d", len(txs), pool.Size(),
"node=%q, ntx=%d, size=%d", name, len(txs), pool.Size(),
)
}(pool)
}(name, pool)
}
wg.Wait()
}
@ -196,8 +196,8 @@ func TestReactorBroadcastDoesNotPanic(t *testing.T) {
}
func TestReactorBroadcastTxs(t *testing.T) {
numTxs := 1000
numNodes := 10
numTxs := 512
numNodes := 4
ctx, cancel := context.WithCancel(context.Background())
defer cancel()


Loading…
Cancel
Save