fix lint in scripts/migration

This commit is contained in:
Gaël Goinvic committed 2026-03-11 16:27:30 +01:00
1 parent 03aaa807b1
commit 57bc98cd4c
1 file changed
+3 -3
+3 -3
View File
@@ -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