Skip to content

Commit

Permalink
chore: increase test waits to address flakiness (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaylaBrady authored Oct 15, 2024
1 parent 32dd880 commit 14bce93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion iosApp/iosAppTests/Views/ErrorBannerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class ErrorBannerTests: XCTestCase {

let stateSetPublisher = PassthroughSubject<Void, Never>()

let showedState = sut.inspection.inspect(onReceive: stateSetPublisher, after: 0.2) { view in
let showedState = sut.inspection.inspect(onReceive: stateSetPublisher, after: 0.5) { view in
XCTAssertEqual(try view.find(ViewType.Text.self).string(), "Updated \(minutesAgo) minutes ago")

try view.find(ViewType.Button.self).tap()
Expand Down
4 changes: 2 additions & 2 deletions iosApp/iosAppTests/Views/NearbyTransitViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ final class NearbyTransitViewTests: XCTestCase {
nearbyVM: .init()
)

let exp = sut.inspection.inspect(onReceive: globalLoadedPublisher, after: 0.2) { view in
let exp = sut.inspection.inspect(onReceive: globalLoadedPublisher, after: 0.5) { view in
let stops = view.findAll(NearbyStopView.self)
XCTAssertEqual(stops[0].findAll(DestinationRowView.self).count, 3)

Expand Down Expand Up @@ -710,7 +710,7 @@ final class NearbyTransitViewTests: XCTestCase {
nearbyVM: .init()
)

sut.inspection.inspect(after: 0.2) { view in
sut.inspection.inspect(after: 0.5) { view in
XCTAssertNotNil(try view.view(NearbyTransitView.self)
.find(text: "Error loading data"))
}
Expand Down

0 comments on commit 14bce93

Please sign in to comment.