diff options
Diffstat (limited to 'server_test.go')
-rw-r--r-- | server_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server_test.go b/server_test.go index 3a19a5c5..9e2367e4 100644 --- a/server_test.go +++ b/server_test.go @@ -179,7 +179,7 @@ func TestServer_ReplacePool(t *testing.T) { assert.NoError(t, srv.Start()) constructed := make(chan interface{}) - srv.Observe(func(e int, ctx interface{}) { + srv.Listen(func(e int, ctx interface{}) { if e == EventPoolConstruct { close(constructed) } @@ -208,7 +208,7 @@ func TestServer_ServerFailure(t *testing.T) { assert.NoError(t, srv.Start()) failure := make(chan interface{}) - srv.Observe(func(e int, ctx interface{}) { + srv.Listen(func(e int, ctx interface{}) { if e == EventServerFailure { close(failure) } |