no timeout

This commit is contained in:
Anton Kaliaev
2019-02-07 17:17:57 +04:00
parent ebe8625478
commit cf67a8b1b7
2 changed files with 4 additions and 4 deletions
+3 -2
View File
@@ -139,10 +139,11 @@ func TestEventBusPublish(t *testing.T) {
require.NoError(t, err)
defer eventBus.Stop()
sub, err := eventBus.Subscribe(context.Background(), "test", tmquery.Empty{})
const numEventsExpected = 14
sub, err := eventBus.Subscribe(context.Background(), "test", tmquery.Empty{}, numEventsExpected)
require.NoError(t, err)
const numEventsExpected = 14
done := make(chan struct{})
go func() {
numEvents := 0