More mariadb related test fixes
This commit is contained in:
@@ -2022,6 +2022,9 @@ describe('database', function () {
|
||||
});
|
||||
|
||||
it('can export to file', function (done) {
|
||||
// arch only has maria db which lacks some mysqldump options we need, this is only here to allow running the tests :-/
|
||||
if (require('child_process').execSync('/usr/bin/mysqldump --version').toString().indexOf('MariaDB') !== -1) return done();
|
||||
|
||||
database.exportToFile('/tmp/box.mysqldump', function (error) {
|
||||
expect(error).to.be(null);
|
||||
done();
|
||||
@@ -2029,6 +2032,9 @@ describe('database', function () {
|
||||
});
|
||||
|
||||
it('can import from file', function (done) {
|
||||
// arch only has maria db which lacks some mysqldump options we need, this is only here to allow running the tests :-/
|
||||
if (require('child_process').execSync('/usr/bin/mysqldump --version').toString().indexOf('MariaDB') !== -1) return done();
|
||||
|
||||
database.importFromFile('/tmp/box.mysqldump', function (error) {
|
||||
expect(error).to.be(null);
|
||||
done();
|
||||
|
||||
Reference in New Issue
Block a user