Skip to content

Commit f30867a

Browse files
committed
Add attemptCount value to retry failure error
1 parent 14bfdcc commit f30867a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/AlgoliaSearchClientTests/Integration/OnlineTestCase.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class OnlineTestCase: XCTestCase {
5454
try test()
5555
break
5656
} catch let error where attemptCount == retryCount {
57-
throw Error.retryFailed(error)
57+
throw Error.retryFailed(attemptCount: attemptCount, error: error)
5858
}
5959
}
6060
}
@@ -70,6 +70,6 @@ class OnlineTestCase: XCTestCase {
7070
extension OnlineTestCase {
7171
enum Error: Swift.Error {
7272
case missingCredentials
73-
case retryFailed(Swift.Error)
73+
case retryFailed(attemptCount: Int, error: Swift.Error)
7474
}
7575
}

0 commit comments

Comments
 (0)