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")