Skip to content

Commit

Permalink
fix: fix likely-to-fail test case (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
sojingle authored Dec 17, 2024
1 parent 8af9acf commit 94e5e11
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Tests/AmplitudeTests/Utilities/EventPipelineTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,8 @@ final class EventPipelineTests: XCTestCase {
pipeline.flush {
flushExpectation.fulfill()
}
wait(for: [uploadExpectations[0], uploadExpectations[1]], timeout: 1)
XCTAssertEqual(httpClient.uploadCount, 2)
XCTAssertEqual(pipeline.configuration.offline, false)

wait(for: [uploadExpectations[2], flushExpectation], timeout: 1)
wait(for: uploadExpectations + [flushExpectation], timeout: 1)
XCTAssertEqual(httpClient.uploadCount, 3)
XCTAssertEqual(pipeline.configuration.offline, false)
}
Expand Down

0 comments on commit 94e5e11

Please sign in to comment.