Merge pull request #1768 from cwillisf/node11-fix-unit-tests

Fix unit tests on Travis CI
This commit is contained in:
Chris Willis-Ford 2018-11-19 14:06:10 -08:00 committed by GitHub
commit e071cf3c0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,7 @@
language: node_js language: node_js
node_js: node_js:
- 8 - 8
- node - 10
env: env:
global: global:
- NODE_ENV=production - NODE_ENV=production

View file

@ -49,7 +49,8 @@ test('local', t => {
test('remote', t => { test('remote', t => {
const fixturesDir = path.resolve(__dirname, '../fixtures'); const fixturesDir = path.resolve(__dirname, '../fixtures');
const worker = new Worker('./test/fixtures/dispatch-test-worker-shim.js', null, {cwd: fixturesDir}); const shimPath = path.resolve(fixturesDir, 'dispatch-test-worker-shim.js');
const worker = new Worker(shimPath, null, {cwd: fixturesDir});
dispatch.addWorker(worker); dispatch.addWorker(worker);
const waitForWorker = new Promise(resolve => { const waitForWorker = new Promise(resolve => {