From aec43e1cfba992e529e94bebf72a50c2b090ebb8 Mon Sep 17 00:00:00 2001 From: Kim Altintop Date: Mon, 2 Jun 2025 09:30:27 +0200 Subject: [PATCH] smoktests: Bring containers back up in tear down of replication tests Needed to ensure subsequent tests that don't inherit from `ReplicationTest` have a functioning cluster, and allows deletion of test database. --- smoketests/tests/replication.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/smoketests/tests/replication.py b/smoketests/tests/replication.py index e7cba4b1445..d5de98fe39b 100644 --- a/smoketests/tests/replication.py +++ b/smoketests/tests/replication.py @@ -219,6 +219,11 @@ def setUpClass(cls): super().setUpClass() cls.root_config = cls.project_path / "root_config" + def tearDown(self): + # Ensure containers that were brought down during a test are back up. + self.docker.compose("up", "-d") + super().tearDown() + def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs)