1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00

fix retry test

This commit is contained in:
asim 2024-07-07 19:01:43 +01:00
parent c64cb1cb03
commit 66b3fd8893

View File

@ -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 {