summaryrefslogtreecommitdiff
path: root/static_pool_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-03-31 14:57:12 +0300
committerWolfy-J <[email protected]>2018-03-31 14:57:12 +0300
commit3d1b67afba6fcc674cf3c3de758188321253d5d8 (patch)
tree6c5c488027ec1f4ef0e87d0a6ebc0b7648445e49 /static_pool_test.go
parentd1b7ac989e40b096bf3a47fd79d589adc4a63b31 (diff)
pool renamed to static pool to reflect it's design, new pool interface has been added
Diffstat (limited to 'static_pool_test.go')
-rw-r--r--static_pool_test.go4
1 files changed, 2 insertions, 2 deletions
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")})