Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions test/return/result.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,13 @@ test('result.isTerminated is false if not killed', async t => {
t.false(isTerminated);
});

// Remove the condition after fixing the bug at https://github.com/sindresorhus/execa/issues/1193
if (!isWindows) {
test('result.isTerminated is false if not killed and subprocess.kill() was called', async t => {
const subprocess = execa('noop.js');
subprocess.kill(0);
t.true(subprocess.killed);
const {isTerminated} = await subprocess;
t.false(isTerminated);
});
}
test('result.isTerminated is false if not killed and subprocess.kill() was called', async t => {
const subprocess = execa('noop.js');
subprocess.kill(0);
t.true(subprocess.killed);
const {isTerminated} = await subprocess;
t.false(isTerminated);
});

test('result.isTerminated is false if not killed, in sync mode', t => {
const {isTerminated} = execaSync('noop.js');
Expand Down