Преглед на файлове

fix flakyness in test_dynamic_routes (#1603)

Masen Furer преди 1 година
родител
ревизия
8ce3ee19cc
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      integration/test_dynamic_routes.py

+ 1 - 1
integration/test_dynamic_routes.py

@@ -149,7 +149,7 @@ def test_on_load_navigate(dynamic_route: AppHarness, driver):
     # because the new page re-initializes `useEventLoop`, with the same hydrate event
     # because the new page re-initializes `useEventLoop`, with the same hydrate event
     # but routeChangeComplete also still fires.
     # but routeChangeComplete also still fires.
     time.sleep(0.2)
     time.sleep(0.2)
-    assert backend_state.order[1:] == [str(ix) for ix in range(10)]
+    assert backend_state.order[-10:] == [str(ix) for ix in range(10)]
 
 
 
 
 def test_on_load_navigate_non_dynamic(dynamic_route: AppHarness, driver):
 def test_on_load_navigate_non_dynamic(dynamic_route: AppHarness, driver):