mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-22 22:12:28 -05:00
Use absolute path for worker shim in dispatch test
Node 11 causes TinyWorker to resolve its start script path differently, compared to Node 8. Using an absolute path works for both.
This commit is contained in:
parent
2ca735eab4
commit
30a1ba52e3
1 changed files with 2 additions and 1 deletions
|
@ -49,7 +49,8 @@ test('local', t => {
|
|||
|
||||
test('remote', t => {
|
||||
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);
|
||||
|
||||
const waitForWorker = new Promise(resolve => {
|
||||
|
|
Loading…
Reference in a new issue