Skip to content

Commit

Permalink
fix: fix likely-to-fail test case
Browse files Browse the repository at this point in the history
  • Loading branch information
sojingle committed Dec 17, 2024
1 parent 8af9acf commit 77bb2d4
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 77bb2d4

Please sign in to comment.