wait 100ms before kicking a subscriber out

+ a test for indexer_service
This commit is contained in:
Anton Kaliaev
2019-02-07 17:17:56 +04:00
parent c6e3059e32
commit 165bb2abfe
4 changed files with 82 additions and 10 deletions
+1 -2
View File
@@ -139,8 +139,7 @@ func TestEventBusPublish(t *testing.T) {
require.NoError(t, err)
defer eventBus.Stop()
// FIXME: the test fails without a buffer
sub, err := eventBus.Subscribe(context.Background(), "test", tmquery.Empty{}, 14)
sub, err := eventBus.Subscribe(context.Background(), "test", tmquery.Empty{})
require.NoError(t, err)
const numEventsExpected = 14