From b0f77d2e3fa6ddc157e09c0e2bc68686511b53df Mon Sep 17 00:00:00 2001 From: Jin Xu Date: Tue, 17 Dec 2024 13:37:29 -0800 Subject: [PATCH] fix: fix-likely-to-fail-test-case --- Tests/AmplitudeTests/Supports/TestUtilities.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/AmplitudeTests/Supports/TestUtilities.swift b/Tests/AmplitudeTests/Supports/TestUtilities.swift index abb5c1a..9ed9eef 100644 --- a/Tests/AmplitudeTests/Supports/TestUtilities.swift +++ b/Tests/AmplitudeTests/Supports/TestUtilities.swift @@ -149,7 +149,7 @@ class FakeHttpClient: HttpClient { result = uploadResults.removeFirst() } - DispatchQueue.global().async { [weak self] in + DispatchQueue.global().asyncAfter(deadline: .now() + 0.01) { [weak self] in completion(result) if let self, !self.uploadExpectations.isEmpty {