Skip to content

Commit

Permalink
repair test
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed May 12, 2024
1 parent 8e06b82 commit f24949a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tests/DiscordBMTests/ClientConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ class ClientConfigurationTests: XCTestCase {
do {
let policy = RetryPolicy.default
XCTAssertTrue(policy.shouldRetry(status: .internalServerError, retriesSoFar: 0))
XCTAssertFalse(policy.shouldRetry(status: .internalServerError, retriesSoFar: 1))
XCTAssertFalse(policy.shouldRetry(status: .internalServerError, retriesSoFar: 2))
XCTAssertTrue(policy.shouldRetry(status: .internalServerError, retriesSoFar: 1))
XCTAssertTrue(policy.shouldRetry(status: .internalServerError, retriesSoFar: 2))
XCTAssertFalse(policy.shouldRetry(status: .internalServerError, retriesSoFar: 3))
XCTAssertFalse(policy.shouldRetry(status: .internalServerError, retriesSoFar: 4))
XCTAssertFalse(policy.shouldRetry(status: .internalServerError, retriesSoFar: 100000))
}

Expand Down

0 comments on commit f24949a

Please sign in to comment.