|
|
|
@ -71,9 +71,8 @@ func TestDeletionRetryQueue_ExponentialBackoff(t *testing.T) { |
|
|
|
t.Errorf("Expected RetryCount %d, got %d", i+1, item.RetryCount) |
|
|
|
} |
|
|
|
|
|
|
|
// Remove from queue for next iteration
|
|
|
|
// Reset the heap for the next isolated test iteration
|
|
|
|
queue.lock.Lock() |
|
|
|
delete(queue.itemIndex, item.FileId) |
|
|
|
queue.heap = retryHeap{} |
|
|
|
queue.lock.Unlock() |
|
|
|
} |
|
|
|
@ -178,8 +177,8 @@ func TestCalculateBackoff(t *testing.T) { |
|
|
|
|
|
|
|
func TestIsRetryableError(t *testing.T) { |
|
|
|
testCases := []struct { |
|
|
|
error string |
|
|
|
retryable bool |
|
|
|
error string |
|
|
|
retryable bool |
|
|
|
description string |
|
|
|
}{ |
|
|
|
{"volume 123 is read only", true, "read-only volume"}, |
|
|
|
|