From 3d1b67afba6fcc674cf3c3de758188321253d5d8 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sat, 31 Mar 2018 14:57:12 +0300 Subject: pool renamed to static pool to reflect it's design, new pool interface has been added --- static_pool_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static_pool_test.go') diff --git a/static_pool_test.go b/static_pool_test.go index c3b3cbba..6e6aa4be 100644 --- a/static_pool_test.go +++ b/static_pool_test.go @@ -150,11 +150,11 @@ func Test_StaticPool_Broken_Replace(t *testing.T) { assert.NotNil(t, p) assert.NoError(t, err) - p.observer = func(e int, w *Worker, ctx interface{}) { + p.Observe(func(e int, w *Worker, ctx interface{}) { if err, ok := ctx.(error); ok { assert.Contains(t, err.Error(), "undefined_function()") } - } + }) res, err := p.Exec(&Payload{Body: []byte("hello")}) -- cgit v1.2.3