File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Tests/TecoCLSLoggingTests Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ final class CLSLogQueueTests: XCTestCase {
99 let batches = ManagedAtomic ( 0 )
1010 func upload( _ logs: [ Cls_LogGroup ] ) throws -> String {
1111 XCTAssertLessThanOrEqual ( logs. count, 2 )
12- batches. wrappingIncrement ( ordering: . relaxed )
12+ batches. wrappingIncrement ( ordering: . sequentiallyConsistent )
1313 return " mock-upload-id "
1414 }
1515
@@ -27,9 +27,10 @@ final class CLSLogQueueTests: XCTestCase {
2727
2828 // force flush the logger to upload logs
2929 try queue. forceFlush ( )
30+ try await Task . sleep ( nanoseconds: 10_000_000 )
3031
3132 // assert batch counts
32- XCTAssertEqual ( batches. load ( ordering: . acquiring ) , 6 )
33+ XCTAssertEqual ( batches. load ( ordering: . sequentiallyConsistent ) , 6 )
3334 }
3435
3536 func testWaitDuration( ) async throws {
You can’t perform that action at this time.
0 commit comments