From 8b366019c761da66e7087355e31747bc99b09b4a Mon Sep 17 00:00:00 2001 From: KaylaBrady <31781298+KaylaBrady@users.noreply.github.com> Date: Thu, 12 Dec 2024 14:25:00 -0500 Subject: [PATCH] fix(subscribeToVehiclesTest): waitUntil so not flaky --- .../mbta/tid/mbta_app/android/state/SubscribeToVehiclesTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/androidApp/src/androidTest/java/com/mbta/tid/mbta_app/android/state/SubscribeToVehiclesTest.kt b/androidApp/src/androidTest/java/com/mbta/tid/mbta_app/android/state/SubscribeToVehiclesTest.kt index e3a329d5d..a3c236e1b 100644 --- a/androidApp/src/androidTest/java/com/mbta/tid/mbta_app/android/state/SubscribeToVehiclesTest.kt +++ b/androidApp/src/androidTest/java/com/mbta/tid/mbta_app/android/state/SubscribeToVehiclesTest.kt @@ -49,7 +49,7 @@ class SubscribeToVehiclesTest { } waitUntil { connectProps == Pair("route_1", 1) } - assertEquals(listOf(vehicle), vehicles) + waitUntil { listOf(vehicle) == vehicles } runOnUiThread { stateFilter.value = StopDetailsFilter("route_2", 1) } waitUntil { connectProps == Pair("route_2", 1) }