Verified Commit 1d2879d3 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Increase the MySQL startup timeout

parent aeb1ee4a
Loading
Loading
Loading
Loading
+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
@@ -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