Skip to content

Commit 51d2d93

Browse files
committed
Fixed test timing.
1 parent 13ad034 commit 51d2d93

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Tests/Segment-Tests/Analytics_Tests.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,11 @@ final class Analytics_Tests: XCTestCase {
771771
expectation.fulfill()
772772
}
773773

774-
wait(for: [expectation], timeout: 60)
774+
#if os(iOS)
775+
wait(for: [expectation])
776+
#else
777+
wait(for: [expectation], timeout: 5)
778+
#endif
775779

776780
XCTAssertNil(analytics.pendingUploads)
777781
}

0 commit comments

Comments
 (0)