From 96efebed249944be4f4ddfba53ca2f983e4d5e46 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sun, 30 Oct 2022 02:39:48 +0200 Subject: tests: mysql: Wait for the socket before running queries. * gnu/tests/databases.scm (run-mysql-test): Add socket test. --- gnu/tests/databases.scm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gnu/tests') diff --git a/gnu/tests/databases.scm b/gnu/tests/databases.scm index 296d91d118..2ca13577a1 100644 --- a/gnu/tests/databases.scm +++ b/gnu/tests/databases.scm @@ -430,6 +430,9 @@ data double PRECISION NULL (test-assert "mysql_upgrade completed" (wait-for-file "/var/lib/mysql/mysql_upgrade_info" marionette)) + (test-assert "socket is ready" + (wait-for-unix-socket "/run/mysqld/mysqld.sock" marionette)) + (test-eq "create database" 0 (marionette-eval -- cgit 1.4.1