summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")})