Skip to content

Commit

Permalink
Tone down the concurrency test a bit as it wasn't completing on the G…
Browse files Browse the repository at this point in the history
…itHub build servers (#47)
  • Loading branch information
gazreese authored Mar 12, 2024
1 parent 5246454 commit e78bd04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FlagsmithClient/Tests/APIManagerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ final class APIManagerTests: FlagsmithClientTestCase {
let concurrentQueue = DispatchQueue(label: "concurrentQueue", attributes: .concurrent)

var expectations:[XCTestExpectation] = [];
let iterations = 1000
let iterations = 500
var error: FlagsmithError?

for concurrentIteration in 1...iterations {
Expand All @@ -82,7 +82,7 @@ final class APIManagerTests: FlagsmithClientTestCase {
}
}

wait(for: expectations, timeout: 5)
wait(for: expectations, timeout: 10)
// Ensure that we didn't have any errors during the process
XCTAssertTrue(error == nil)

Expand Down

0 comments on commit e78bd04

Please sign in to comment.