Loading behave_utils/mysql.py +2 −2 Original line number Diff line number Diff line # Copyright 2021-2023 Dominik Sekotill <dom.sekotill@kodo.org.uk> # Copyright 2021-2024 Dominik Sekotill <dom.sekotill@kodo.org.uk> # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this Loading Loading @@ -73,9 +73,9 @@ class MysqlContainer(Container): cls._inst = self = cls(version, [init]) self.start() sleep(20) wait(lambda: self.run(['/healthcheck.sh']).returncode == 0) if environ.get("BEHAVE_UTILS_MYSQL_KEEP", "0") == "0": atexit.register(self.stop, rm=True) wait(lambda: self.run(['/healthcheck.sh']).returncode == 0, timeout=240) return self @classmethod Loading Loading
behave_utils/mysql.py +2 −2 Original line number Diff line number Diff line # Copyright 2021-2023 Dominik Sekotill <dom.sekotill@kodo.org.uk> # Copyright 2021-2024 Dominik Sekotill <dom.sekotill@kodo.org.uk> # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this Loading Loading @@ -73,9 +73,9 @@ class MysqlContainer(Container): cls._inst = self = cls(version, [init]) self.start() sleep(20) wait(lambda: self.run(['/healthcheck.sh']).returncode == 0) if environ.get("BEHAVE_UTILS_MYSQL_KEEP", "0") == "0": atexit.register(self.stop, rm=True) wait(lambda: self.run(['/healthcheck.sh']).returncode == 0, timeout=240) return self @classmethod Loading