diff --git a/tests/unit_tests/test_scan_history_browser.py b/tests/unit_tests/test_scan_history_browser.py index caa5e24d..79fee820 100644 --- a/tests/unit_tests/test_scan_history_browser.py +++ b/tests/unit_tests/test_scan_history_browser.py @@ -310,18 +310,21 @@ def test_scan_history_browser(qtbot, scan_history_browser, scan_history_msg, sca scan_history_browser.scan_history_view.topLevelItem(1) ).center(), ) + qtbot.wait(2000) + assert scan_history_browser.scan_history_metadata_viewer.scan_history_msg == scan_history_msg + assert scan_history_browser.scan_history_device_viewer.scan_history_msg == scan_history_msg # Both metadata and device viewers should be updated with the first scan - qtbot.waitUntil( - lambda: scan_history_browser.scan_history_metadata_viewer.scan_history_msg - == scan_history_msg, - timeout=5000, - ) - qtbot.waitUntil( - lambda: scan_history_browser.scan_history_device_viewer.scan_history_msg - == scan_history_msg, - timeout=5000, - ) + # qtbot.waitUntil( + # lambda: scan_history_browser.scan_history_metadata_viewer.scan_history_msg + # == scan_history_msg, + # timeout=5000, + # ) + # qtbot.waitUntil( + # lambda: scan_history_browser.scan_history_device_viewer.scan_history_msg + # == scan_history_msg, + # timeout=5000, + # ) callback_args = []