Skip to content

Commit b0f77d2

Browse files
committed
fix: fix-likely-to-fail-test-case
1 parent 8af9acf commit b0f77d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/AmplitudeTests/Supports/TestUtilities.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class FakeHttpClient: HttpClient {
149149
result = uploadResults.removeFirst()
150150
}
151151

152-
DispatchQueue.global().async { [weak self] in
152+
DispatchQueue.global().asyncAfter(deadline: .now() + 0.01) { [weak self] in
153153
completion(result)
154154

155155
if let self, !self.uploadExpectations.isEmpty {

0 commit comments

Comments
 (0)