Skip to content

Commit 097f657

Browse files
committed
Fix RerouteObserver methos expectation in tests (#11648)
1 parent b94ff8a commit 097f657

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tests/MapboxNavigationCoreIntegrationTests/BaseIntegrationTest.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ class BaseIntegrationTest: BaseTestCase {
7070
let rerouteExpectation = expectation(description: "Reroute expectation")
7171
await navigationProvider.navigator().rerouting
7272
.filter { $0.event is ReroutingStatus.Events.Fetched }
73+
.first()
7374
.sink { _ in rerouteExpectation.fulfill() }
7475
.store(in: &cancellables)
7576
return rerouteExpectation

0 commit comments

Comments
 (0)