mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
14 lines
220 B
Go
14 lines
220 B
Go
package backoff
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestNoRetry(t *testing.T) {
|
|
policy := NewNoRetry()
|
|
_, err := policy.GetRetryDelay(0)
|
|
assert.ErrorIs(t, err, ErrMaxAttemptsReached)
|
|
}
|