diff --git a/scripts/migration/tests/test_prompts.py b/scripts/migration/tests/test_prompts.py index d5f71f38..4e0b4ab0 100644 --- a/scripts/migration/tests/test_prompts.py +++ b/scripts/migration/tests/test_prompts.py @@ -89,7 +89,7 @@ def test_migration_with_missing_secrets_prompt( assert base64.b64decode(secret.data["synapse.macaroon"]) == b"test_macaroon" # registration shared secret is accepted to be generated by init secrets assert "synapse.registrationSharedSecret" not in secret.data - except asyncio.TimeoutError: + except TimeoutError: pytest.fail("Test timed out - prompt may be hanging") except Exception as e: # If the test fails, it should be a meaningful failure @@ -154,7 +154,7 @@ def test_migration_with_unknown_workers_prompt( assert "event-creator" in synapse_config_result["workers"] assert "synchrotron" in synapse_config_result["workers"] assert synapse_config_result["workers"]["synchrotron"]["replicas"] == 2 - except asyncio.TimeoutError: + except TimeoutError: pytest.fail("Test timed out - prompt may be hanging") except Exception as e: # If the test fails, it should be a meaningful failure @@ -221,7 +221,7 @@ def test_migration_with_missing_extra_files_prompt( synapse_config = ess_values["synapse"] assert len(synapse_config["extraVolumeMounts"]) == 2 - except asyncio.TimeoutError: + except TimeoutError: pytest.fail("Test timed out - prompt may be hanging") except Exception as e: # If the test fails, it should be a meaningful failure