Skip to content

Commit

Permalink
fix retry test
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Jul 7, 2024
1 parent c64cb1c commit 66b3fd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/rpc_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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 {
Expand Down

0 comments on commit 66b3fd8

Please sign in to comment.