Browse Source

Fix Travis MySQL

emp
Luke Childs 7 years ago
committed by Jytesh
parent
commit
fb66c621e7
  1. 1
      packages/keyv-mysql/.travis.yml
  2. 4
      packages/keyv-mysql/test/test.js

1
packages/keyv-mysql/.travis.yml

@ -7,6 +7,7 @@ services:
- mysql
before_script:
- mysql -e 'CREATE DATABASE keyv_test;'
- mysql -e 'GRANT ALL PRIVILEGES ON keyv_test.* TO 'mysql'@'localhost';'
script: npm test
after_success: npm run coverage
notifications:

4
packages/keyv-mysql/test/test.js

@ -3,7 +3,7 @@ import keyvTestSuite, { keyvOfficialTests } from 'keyv-test-suite';
import Keyv from 'keyv';
import KeyvMysql from 'this';
keyvOfficialTests(test, Keyv, 'mysql://localhost/keyv_test', 'mysqlql://foo');
keyvOfficialTests(test, Keyv, 'mysql://mysql@localhost/keyv_test', 'mysqlql://foo');
const store = () => new KeyvMysql('mysql://localhost/keyv_test');
const store = () => new KeyvMysql('mysql://mysql@localhost/keyv_test');
keyvTestSuite(test, Keyv, store);

Loading…
Cancel
Save