diff --git a/pubsub/hub_test.go b/pubsub/hub_test.go index ac728ab8..2c4c4e14 100644 --- a/pubsub/hub_test.go +++ b/pubsub/hub_test.go @@ -18,7 +18,7 @@ func TestBus(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() - p := New() + p := newHub() events, errc := p.Subscribe(ctx) if got, want := p.Subscribers(), 1; got != want {