diff --git a/pkg/app/client/client_test.go b/pkg/app/client/client_test.go index d231fac54..5f3e8c62f 100644 --- a/pkg/app/client/client_test.go +++ b/pkg/app/client/client_test.go @@ -2163,7 +2163,7 @@ func TestClientHostClientConfigHookError(t *testing.T) { req.SetMethod(consts.MethodGet) req.SetRequestURI("http://foo.bar/") resp := protocol.AcquireResponse() - err := client.do(nil, req, resp) + err := client.do(context.TODO(), req, resp) assert.DeepEqual(t, "hook return", err.Error()) }