Skip to content

Commit

Permalink
Fix tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kevva committed Jun 7, 2017
1 parent eccfca7 commit 60cb894
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,13 @@ if (process.platform !== 'win32') {

t.is(err.signal, 'SIGTERM');
});
}

test('custom err.signal', async t => {
const err = await t.throws(m('delay', ['3000', '0'], {killSignal: 'SIGHUP', timeout: 1500}));
test('custom err.signal', async t => {
const err = await t.throws(m('delay', ['3000', '0'], {killSignal: 'SIGHUP', timeout: 1500}));

t.is(err.signal, 'SIGHUP');
});
t.is(err.signal, 'SIGHUP');
});
}

test('result.signal is null for successful execution', async t => {
t.is((await m('noop')).signal, null);
Expand Down

0 comments on commit 60cb894

Please sign in to comment.