mirror of
https://github.com/libp2p/go-eventbus.git
synced 2025-03-25 12:10:06 +08:00
Update test error message
Co-Authored-By: Łukasz Magiera <magik6k@users.noreply.github.com>
This commit is contained in:
parent
217da8e826
commit
40251732b1
@ -111,7 +111,7 @@ func TestEmitOnClosed(t *testing.T) {
|
||||
em.Close()
|
||||
err = em.Emit(EventA{})
|
||||
if err == nil {
|
||||
t.Errorf("expected panic")
|
||||
t.Errorf("expected error")
|
||||
}
|
||||
if err.Error() != "emitter is closed" {
|
||||
t.Error("unexpected message")
|
||||
|
Loading…
Reference in New Issue
Block a user