Browse Source

bigger buffers

pull/8127/head
tycho garen 3 years ago
committed by M. J. Fromberger
parent
commit
cb5d81f588
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      internal/consensus/reactor_test.go

+ 6
- 6
internal/consensus/reactor_test.go View File

@ -75,10 +75,10 @@ func setup(
blocksyncSubs: make(map[types.NodeID]eventbus.Subscription, numNodes), blocksyncSubs: make(map[types.NodeID]eventbus.Subscription, numNodes),
} }
rts.stateChannels = rts.network.MakeChannelsNoCleanup(ctx, t, chDesc(StateChannel, size))
rts.dataChannels = rts.network.MakeChannelsNoCleanup(ctx, t, chDesc(DataChannel, size))
rts.voteChannels = rts.network.MakeChannelsNoCleanup(ctx, t, chDesc(VoteChannel, size))
rts.voteSetBitsChannels = rts.network.MakeChannelsNoCleanup(ctx, t, chDesc(VoteSetBitsChannel, size))
rts.stateChannels = rts.network.MakeChannelsNoCleanup(ctx, t, chDesc(StateChannel, size*2))
rts.dataChannels = rts.network.MakeChannelsNoCleanup(ctx, t, chDesc(DataChannel, size*2))
rts.voteChannels = rts.network.MakeChannelsNoCleanup(ctx, t, chDesc(VoteChannel, size*2))
rts.voteSetBitsChannels = rts.network.MakeChannelsNoCleanup(ctx, t, chDesc(VoteSetBitsChannel, size*2))
ctx, cancel := context.WithCancel(ctx) ctx, cancel := context.WithCancel(ctx)
t.Cleanup(cancel) t.Cleanup(cancel)
@ -118,14 +118,14 @@ func setup(
blocksSub, err := state.eventBus.SubscribeWithArgs(ctx, tmpubsub.SubscribeArgs{ blocksSub, err := state.eventBus.SubscribeWithArgs(ctx, tmpubsub.SubscribeArgs{
ClientID: testSubscriber, ClientID: testSubscriber,
Query: types.EventQueryNewBlock, Query: types.EventQueryNewBlock,
Limit: 4096,
Limit: 65536,
}) })
require.NoError(t, err) require.NoError(t, err)
fsSub, err := state.eventBus.SubscribeWithArgs(ctx, tmpubsub.SubscribeArgs{ fsSub, err := state.eventBus.SubscribeWithArgs(ctx, tmpubsub.SubscribeArgs{
ClientID: testSubscriber, ClientID: testSubscriber,
Query: types.EventQueryBlockSyncStatus, Query: types.EventQueryBlockSyncStatus,
Limit: 1024,
Limit: 65536,
}) })
require.NoError(t, err) require.NoError(t, err)


Loading…
Cancel
Save