Skip to content

Commit

Permalink
Fixed test timing.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsneed committed Apr 23, 2024
1 parent 13ad034 commit 51d2d93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tests/Segment-Tests/Analytics_Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,11 @@ final class Analytics_Tests: XCTestCase {
expectation.fulfill()
}

wait(for: [expectation], timeout: 60)
#if os(iOS)
wait(for: [expectation])
#else
wait(for: [expectation], timeout: 5)
#endif

XCTAssertNil(analytics.pendingUploads)
}
Expand Down

0 comments on commit 51d2d93

Please sign in to comment.