[no-release-notes] fix data dump testing (#5272)

This commit is contained in:
jennifersp
2023-02-02 10:52:13 -08:00
committed by GitHub
parent f6d682c308
commit 50bc02c3ee
2 changed files with 3 additions and 5 deletions

View File

@@ -1,7 +1,5 @@
#!/bin/sh
cd ./integration-tests/data-dump-loading-tests
echo "Updating dolt config for tests:"
dolt config --global --add metrics.disabled true
dolt config --global --add metrics.host localhost
@@ -9,5 +7,4 @@ dolt config --global --add user.name mysql-test-runner
dolt config --global --add user.email mysql-test-runner@liquidata.co
echo "Running data-dump-loading-tests:"
bats /data-dump-loading-tests/import-mysqldump.bats
bats /data-dump-loading-tests/sakila-data-dump-load.bats
cd /data-dump-loading-tests && bats . && cd -

View File

@@ -505,7 +505,8 @@ SQL
[ "$status" -eq 0 ]
[[ "$output" =~ "2" ]] || false
# Give the server a chance to drop the database
# Give the server a chance to complete the last query
# TODO: `service mysqld stop` is hanging when a check above fails.
sleep 1
service mysql stop
}