diff options
author | Marius Bakke <marius@gnu.org> | 2022-10-30 02:39:48 +0200 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2022-11-20 17:54:04 +0100 |
commit | 96efebed249944be4f4ddfba53ca2f983e4d5e46 (patch) | |
tree | 6be1426df7e729292064b6775728b1134b8b2ae3 | |
parent | fe0a1b49c1b6e19e05e164e4d3115474935d9a3a (diff) |
tests: mysql: Wait for the socket before running queries.
* gnu/tests/databases.scm (run-mysql-test): Add socket test.
-rw-r--r-- | gnu/tests/databases.scm | 3 |
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 |