From 66b3fd88936b9f3ecfaa938f1b5dc0c4dcde718c Mon Sep 17 00:00:00 2001 From: asim Date: Sun, 7 Jul 2024 19:01:43 +0100 Subject: [PATCH] fix retry test --- client/rpc_client_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/rpc_client_test.go b/client/rpc_client_test.go index 29eabd94..cc00212c 100644 --- a/client/rpc_client_test.go +++ b/client/rpc_client_test.go @@ -81,7 +81,6 @@ func TestCallRetry(t *testing.T) { if called == 1 { return errors.InternalServerError("test.error", "retry request") } - // don't do the call return nil } @@ -91,6 +90,8 @@ func TestCallRetry(t *testing.T) { c := NewClient( Registry(r), WrapCall(wrap), + Retry(RetryAlways), + Retries(1), ) if err := c.Options().Selector.Init(selector.Registry(r)); err != nil {