Update test error message

Co-Authored-By: Łukasz Magiera <magik6k@users.noreply.github.com>
This commit is contained in:
bigs 2019-08-01 09:38:57 -08:00 committed by GitHub
parent 217da8e826
commit 40251732b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")