diff --git a/tests/integration/test_integration.py b/tests/integration/test_integration.py index 5aa8ec9..a696ea0 100644 --- a/tests/integration/test_integration.py +++ b/tests/integration/test_integration.py @@ -27,6 +27,7 @@ REQUIRER_CHARM_REVISION_ARM = 103 REQUIRER_CHARM_REVISION_AMD = 104 + async def wait_for_requirer_certificates(ops_test: OpsTest, ca_common_name: str) -> Dict[str, str]: """Wait for the certificate to be provided to the `tls-requirer-requirer/0` unit. @@ -83,17 +84,10 @@ async def deploy(ops_test: OpsTest, request): }, constraints={"arch": ARCH}, ) - if ARCH == "arm64": - await ops_test.model.deploy( - TLS_REQUIRER_CHARM_NAME, - application_name=TLS_REQUIRER_CHARM_NAME, - revision=REQUIRER_CHARM_REVISION_ARM, - constraints={"arch": ARCH}, - ) await ops_test.model.deploy( TLS_REQUIRER_CHARM_NAME, application_name=TLS_REQUIRER_CHARM_NAME, - revision=REQUIRER_CHARM_REVISION_AMD, + revision=REQUIRER_CHARM_REVISION_ARM if ARCH == "arm64" else REQUIRER_CHARM_REVISION_AMD, constraints={"arch": ARCH}, )