Skip to content

Commit

Permalink
trying to fix some tetss
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaysubra committed Apr 9, 2024
1 parent ff151d2 commit 2ae7ce2
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Tests/KlaviyoSwiftTests/APIRequestErrorHandlingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class APIRequestErrorHandlingTests: XCTestCase {
$0.flushing = false
$0.queue = []
$0.requestsInFlight = []
$0.retryInfo = .retry(0)
$0.retryInfo = .retry(1)
}
}

Expand All @@ -78,7 +78,7 @@ class APIRequestErrorHandlingTests: XCTestCase {
$0.flushing = false
$0.queue = []
$0.requestsInFlight = []
$0.retryInfo = .retry(0)
$0.retryInfo = .retry(1)
}
}

Expand All @@ -96,11 +96,11 @@ class APIRequestErrorHandlingTests: XCTestCase {

_ = await store.send(.sendRequest)

await store.receive(.requestFailed(request, .retry(1)), timeout: TIMEOUT_NANOSECONDS) {
await store.receive(.requestFailed(request, .retry(2)), timeout: TIMEOUT_NANOSECONDS) {
$0.flushing = false
$0.queue = [request, request2]
$0.requestsInFlight = []
$0.retryInfo = .retry(1)
$0.retryInfo = .retry(2)
}
}

Expand Down Expand Up @@ -144,7 +144,7 @@ class APIRequestErrorHandlingTests: XCTestCase {
$0.flushing = false
$0.queue = [request2]
$0.requestsInFlight = []
$0.retryInfo = .retry(0)
$0.retryInfo = .retry(1)
}
}

Expand All @@ -167,7 +167,7 @@ class APIRequestErrorHandlingTests: XCTestCase {
$0.flushing = false
$0.queue = []
$0.requestsInFlight = []
$0.retryInfo = .retry(0)
$0.retryInfo = .retry(1)
}
}

Expand All @@ -189,7 +189,7 @@ class APIRequestErrorHandlingTests: XCTestCase {
$0.flushing = false
$0.queue = []
$0.requestsInFlight = []
$0.retryInfo = .retry(0)
$0.retryInfo = .retry(1)
}
}

Expand All @@ -211,7 +211,7 @@ class APIRequestErrorHandlingTests: XCTestCase {
$0.flushing = false
$0.queue = []
$0.requestsInFlight = []
$0.retryInfo = .retry(0)
$0.retryInfo = .retry(1)
}
}

Expand All @@ -232,7 +232,7 @@ class APIRequestErrorHandlingTests: XCTestCase {
$0.flushing = false
$0.queue = []
$0.requestsInFlight = []
$0.retryInfo = .retry(0)
$0.retryInfo = .retry(1)
}
}

Expand All @@ -253,7 +253,7 @@ class APIRequestErrorHandlingTests: XCTestCase {
$0.flushing = false
$0.queue = []
$0.requestsInFlight = []
$0.retryInfo = .retry(0)
$0.retryInfo = .retry(1)
}
}

Expand All @@ -270,11 +270,11 @@ class APIRequestErrorHandlingTests: XCTestCase {

_ = await store.send(.sendRequest)

await store.receive(.requestFailed(request, .retryWithBackoff(requestCount: 1, totalRetryCount: 1, currentBackoff: 0)), timeout: TIMEOUT_NANOSECONDS) {
await store.receive(.requestFailed(request, .retryWithBackoff(requestCount: 2, totalRetryCount: 2, currentBackoff: 0)), timeout: TIMEOUT_NANOSECONDS) {
$0.flushing = false
$0.queue = [request]
$0.requestsInFlight = []
$0.retryInfo = .retryWithBackoff(requestCount: 1, totalRetryCount: 1, currentBackoff: 0)
$0.retryInfo = .retryWithBackoff(requestCount: 2, totalRetryCount: 2, currentBackoff: 0)
}
}

Expand Down Expand Up @@ -316,7 +316,7 @@ class APIRequestErrorHandlingTests: XCTestCase {
$0.flushing = false
$0.queue = []
$0.requestsInFlight = []
$0.retryInfo = .retry(0)
$0.retryInfo = .retry(1)
}
}
}

0 comments on commit 2ae7ce2

Please sign in to comment.