Skip to content

Commit 000aaf7

Browse files
committed
fix failing test
1 parent 21886fc commit 000aaf7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/Segment-Tests/StressTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ class StressTests: XCTestCase {
9191
}
9292

9393
// wait for everything to settle down flush-wise...
94+
for queue in queues {
95+
queue.sync(flags: .barrier) { }
96+
}
97+
9498
while (analytics.hasUnsentEvents) {
9599
RunLoop.main.run(until: Date(timeIntervalSinceNow: .seconds(5)))
96100
}

0 commit comments

Comments
 (0)