Skip to content

Commit 94e5e11

Browse files
authored
fix: fix likely-to-fail test case (#251)
1 parent 8af9acf commit 94e5e11

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Tests/AmplitudeTests/Utilities/EventPipelineTests.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,8 @@ final class EventPipelineTests: XCTestCase {
252252
pipeline.flush {
253253
flushExpectation.fulfill()
254254
}
255-
wait(for: [uploadExpectations[0], uploadExpectations[1]], timeout: 1)
256-
XCTAssertEqual(httpClient.uploadCount, 2)
257-
XCTAssertEqual(pipeline.configuration.offline, false)
258255

259-
wait(for: [uploadExpectations[2], flushExpectation], timeout: 1)
256+
wait(for: uploadExpectations + [flushExpectation], timeout: 1)
260257
XCTAssertEqual(httpClient.uploadCount, 3)
261258
XCTAssertEqual(pipeline.configuration.offline, false)
262259
}

0 commit comments

Comments
 (0)