From e9276bd2596e640034ea5c10ed750d14de6c2aff Mon Sep 17 00:00:00 2001 From: Niels Robin-Aubertin Date: Thu, 30 Nov 2023 14:54:52 -0500 Subject: [PATCH] Fix another run action --- tests/integration/test_charm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/test_charm.py b/tests/integration/test_charm.py index d5669903..9dcae5a2 100644 --- a/tests/integration/test_charm.py +++ b/tests/integration/test_charm.py @@ -97,7 +97,8 @@ async def test_s3_conf(app: Application, localstack_address: str, model: Model): action = await app.units[0].run( # type: ignore f'echo "{s3_conf["ip_address"]} {s3_conf["bucket"]}.s3.{s3_conf["domain"]}" >> /etc/hosts' ) - assert action.results.get("Code") == "0", "Can't inject S3 IP in Discourse hosts" + await action.wait() + assert action.results.get("return-ode") == 0, "Can't inject S3 IP in Discourse hosts" logger.info("Injected bucket subdomain in hosts, configuring settings for discourse") # Application does actually have attribute set_config