From 17f1cb0a8de969afaca0963c3fdda43845da5090 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Fri, 1 Feb 2019 15:49:42 +0400 Subject: [PATCH] fix test --- types/event_bus_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/event_bus_test.go b/types/event_bus_test.go index be3f2315f..0c72a442e 100644 --- a/types/event_bus_test.go +++ b/types/event_bus_test.go @@ -139,7 +139,8 @@ func TestEventBusPublish(t *testing.T) { require.NoError(t, err) defer eventBus.Stop() - sub, err := eventBus.Subscribe(context.Background(), "test", tmquery.Empty{}) + // FIXME: the test fails without a buffer + sub, err := eventBus.Subscribe(context.Background(), "test", tmquery.Empty{}, 14) require.NoError(t, err) const numEventsExpected = 14