From e78bd04e81a31ba27af9e9be42dad0ba35948877 Mon Sep 17 00:00:00 2001 From: Gareth Reese <8297652+gazreese@users.noreply.github.com> Date: Tue, 12 Mar 2024 10:10:57 +0000 Subject: [PATCH] Tone down the concurrency test a bit as it wasn't completing on the GitHub build servers (#47) --- FlagsmithClient/Tests/APIManagerTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FlagsmithClient/Tests/APIManagerTests.swift b/FlagsmithClient/Tests/APIManagerTests.swift index 43b76be..435e74f 100644 --- a/FlagsmithClient/Tests/APIManagerTests.swift +++ b/FlagsmithClient/Tests/APIManagerTests.swift @@ -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 { @@ -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)