Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit23ec6f0

Browse files
authored
Fix CI tests related to.kill(0) (#1212)
1 parent9a2cb79 commit23ec6f0

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

‎test/return/result.js‎

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,13 @@ test('result.isTerminated is false if not killed', async t => {
111111
t.false(isTerminated);
112112
});
113113

114-
// Remove the condition after fixing the bug at https://github.com/sindresorhus/execa/issues/1193
115-
if(!isWindows){
116-
test('result.isTerminated is false if not killed and subprocess.kill() was called',asynct=>{
117-
constsubprocess=execa('noop.js');
118-
subprocess.kill(0);
119-
t.true(subprocess.killed);
120-
const{isTerminated}=awaitsubprocess;
121-
t.false(isTerminated);
122-
});
123-
}
114+
test('result.isTerminated is false if not killed and subprocess.kill() was called',asynct=>{
115+
constsubprocess=execa('noop.js');
116+
subprocess.kill(0);
117+
t.true(subprocess.killed);
118+
const{isTerminated}=awaitsubprocess;
119+
t.false(isTerminated);
120+
});
124121

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp