Skip to content

Commit 8949c27

Browse files
committed
Set wait-timeout to proper default (28800)
Older (than 10.5) MariaDB docker containers come with wait-timeout = 600 and that makes unit tests execution to fail with "MySQL is gone away". Apparently this is already ok with current 10.5 so current moodle-docker instances are passing ok without needing the setting But, no matter of that, we are explicitly adding the setting here, to enable anybody wanting to use older MariaDB docker images to get tests passing. See https://tracker.moodle.org/browse/MDLSITE-6141 for more details.
1 parent c0f1792 commit 8949c27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

db.mariadb.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ services:
1010
--character-set-server=utf8mb4
1111
--collation-server=utf8mb4_bin
1212
--innodb_file_per_table=On
13+
--wait-timeout=28800
1314
environment:
1415
MYSQL_ROOT_PASSWORD: "m@0dl3ing"
1516
MYSQL_USER: moodle

0 commit comments

Comments
 (0)