Skip to content

Commit edb4e4d

Browse files
author
Nacho Bonafonte
committed
Reverse fulfillment change
1 parent 7f4bd97 commit edb4e4d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Tests/OpenTelemetryApiTests/Context/ActivityContextManagerTests.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class ActivityContextManagerTests: XCTestCase {
226226
}
227227
span1.end()
228228
XCTAssert(OpenTelemetry.instance.contextProvider.activeSpan === nil)
229-
await fulfillment(of: [expec], timeout: 30)
229+
await waitForExpectations(timeout: 30)
230230
}
231231

232232
@available(macOS 10.15, iOS 13.0, tvOS 13.0, *)
@@ -258,7 +258,7 @@ class ActivityContextManagerTests: XCTestCase {
258258
XCTAssert(OpenTelemetry.instance.contextProvider.activeSpan === span1)
259259
expec.fulfill()
260260
}
261-
await fulfillment(of: [expec], timeout: 30)
261+
await waitForExpectations(timeout: 30)
262262
span1.end()
263263
XCTAssert(OpenTelemetry.instance.contextProvider.activeSpan === nil)
264264
}
@@ -316,8 +316,7 @@ class ActivityContextManagerTests: XCTestCase {
316316
}
317317

318318
XCTAssert(ActivityContextManager.instance.getCurrentContextValue(forKey: .span) === parent)
319-
await fulfillment(of: [expectation1, expectation2], timeout: 30, enforceOrder: false)
320-
319+
await waitForExpectations(timeout: 5, handler: nil)
321320
parent.end()
322321
XCTAssert(OpenTelemetry.instance.contextProvider.activeSpan === nil)
323322
}

0 commit comments

Comments
 (0)