Skip to content
Myr

Refactor `cleanup` option to use `async/await` (#649)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ehmicky · committed by GitHub · parent 4fb84f0 · Browse files · 2 files+5 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−3 removed

  • tests:+1 added−1 removed
  • other:+4 added−2 removed

2 files+5 added−3 removed

modified:lib/kill.js+4 added-2 removed
modified:test/stream.js+1 added-1 removed
171 unmodified lines
172 });173}174175test('Errors on streams should make the process exit', async t => {176 const childProcess = execa('forever');176 const childProcess = execa('forever.js');177 childProcess.stdout.destroy();178 await t.throwsAsync(childProcess, {code: 'ERR_STREAM_PREMATURE_CLOSE'});179});180
30 unmodified lines