From 2820810d21b674b8269a26e5f02ed8ec6f1f5dc2 Mon Sep 17 00:00:00 2001 From: Joshua Sangmeister Date: Tue, 19 Mar 2024 12:09:55 +0100 Subject: [PATCH] Fix test_longer_migration --- tests/system/action/test_migration_route.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/system/action/test_migration_route.py b/tests/system/action/test_migration_route.py index aa13c3df9..cbc373bec 100644 --- a/tests/system/action/test_migration_route.py +++ b/tests/system/action/test_migration_route.py @@ -114,8 +114,10 @@ def test_longer_migration(self, execute_command: Mock) -> None: execute_command.side_effect = self.wait_for_lock(wait_lock, indicator_lock) response = self.migration_request("migrate") self.assert_status_code(response, 200) + indicator_lock.acquire() assert response.json["status"] == MigrationState.MIGRATION_RUNNING assert response.json["output"] == "start\n" + indicator_lock.release() indicator_lock.acquire() response = self.migration_request("progress")