Use docker based mysql server for testing with the correct version

This commit is contained in:
Johannes Zellner
2019-01-23 16:18:52 +01:00
parent 6e925f6b99
commit 2181137181
4 changed files with 30 additions and 12 deletions
+3 -2
View File
@@ -119,8 +119,9 @@ function initConfig() {
if (exports.TEST) {
data.port = 5454;
data.apiServerOrigin = 'http://localhost:6060'; // hock doesn't support https
data.database.password = '';
data.database.name = 'boxtest';
// see setupTest script how the mysql-server is run
data.database.hostname = require('child_process').execSync('docker inspect -f "{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}" mysql-server').toString().trim();
}
// overwrite defaults with saved config