summary refs log tree commit diff
path: root/gnu/tests
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-10-30 02:39:48 +0200
committerMarius Bakke <marius@gnu.org>2022-11-20 17:54:04 +0100
commit96efebed249944be4f4ddfba53ca2f983e4d5e46 (patch)
tree6be1426df7e729292064b6775728b1134b8b2ae3 /gnu/tests
parentfe0a1b49c1b6e19e05e164e4d3115474935d9a3a (diff)
downloadguix-96efebed249944be4f4ddfba53ca2f983e4d5e46.tar.gz
tests: mysql: Wait for the socket before running queries.
* gnu/tests/databases.scm (run-mysql-test): Add socket test.
Diffstat (limited to 'gnu/tests')
-rw-r--r--gnu/tests/databases.scm3
1 files changed, 3 insertions, 0 deletions
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