diff options
author | Wolfy-J <[email protected]> | 2018-06-10 17:04:02 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-10 17:04:02 +0300 |
commit | 3fe85e9d92f5f98337e8f7fd9a14e6b66b9694bd (patch) | |
tree | 2575fbba16df4f95dd392f231ad7d7b30a5dd4ef /server_test.go | |
parent | 4c292ee46f5505b00b16186e8f30e9bc1be25895 (diff) |
http service
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) } |