remove old event bus reset since no longer needed

This commit is contained in:
William Banfield
2022-01-20 15:36:45 -05:00
parent bcc0011702
commit 67028202ff
-12
View File
@@ -358,18 +358,6 @@ func TestStateFullRound1(t *testing.T) {
cs, vss := randState(ctx, t, config, logger, 1)
height, round := cs.Height, cs.Round
// NOTE: buffer capacity of 0 ensures we can validate prevote and last commit
// before consensus can move to the next height (and cause a race condition)
if err := cs.eventBus.Stop(); err != nil {
t.Error(err)
}
eventBus := eventbus.NewDefault(logger.With("module", "events"))
cs.SetEventBus(eventBus)
if err := eventBus.Start(ctx); err != nil {
t.Error(err)
}
pv, err := cs.privValidator.GetPubKey(ctx)
require.NoError(t, err)
voteCh := subscribeToVoter(ctx, t, cs, pv.Address())