fixed test

This commit is contained in:
Marko Gaćeša 2021-07-22 15:11:42 +02:00
parent ebbe87e4c6
commit dc6a3ebebf

View file

@ -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 {