Skip to content

Commit 65c58d9

Browse files
committed
merge conflict
1 parent 842f187 commit 65c58d9

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

retry_test.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,16 @@ func TestUnrecoverableError(t *testing.T) {
294294
},
295295
Attempts(2),
296296
)
297-
assert.Error(t, err)
298-
assert.Equal(t, Unrecoverable(testErr), err)
299-
assert.Equal(t, 1, attempts, "unrecoverable error broke the loop")
297+
if err == nil {
298+
t.Fatal("expected error, got nil")
299+
}
300+
expectedErr := Unrecoverable(testErr)
301+
if err.Error() != expectedErr.Error() {
302+
t.Errorf("error: got %v, want %v", err, expectedErr)
303+
}
304+
if attempts != 1 {
305+
t.Errorf("attempts with unrecoverable error: got %d, want 1", attempts)
306+
}
300307
}
301308

302309
func TestCombineFixedDelays(t *testing.T) {

0 commit comments

Comments
 (0)