mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-12-04 07:42:28 -08:00
fix lint in scripts/migration
This commit is contained in:
1 file changed
+3
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user