@@ -318,7 +318,7 @@ describe('core', () => {
318
318
} )
319
319
320
320
test ( 'abort() method works' , async ( ) => {
321
- const p = $ `sleep 9999 `
321
+ const p = $ ( { detached : true } ) `sleep 999 `
322
322
setTimeout ( ( ) => p . abort ( ) , 100 )
323
323
324
324
try {
@@ -331,7 +331,7 @@ describe('core', () => {
331
331
332
332
test ( 'accepts optional AbortController' , async ( ) => {
333
333
const ac = new AbortController ( )
334
- const p = $ ( { ac } ) `sleep 9999 `
334
+ const p = $ ( { ac, detached : true } ) `sleep 999 `
335
335
setTimeout ( ( ) => ac . abort ( ) , 100 )
336
336
337
337
try {
@@ -345,7 +345,7 @@ describe('core', () => {
345
345
test ( 'accepts AbortController `signal` separately' , async ( ) => {
346
346
const ac = new AbortController ( )
347
347
const signal = ac . signal
348
- const p = $ ( { signal } ) `sleep 9999 `
348
+ const p = $ ( { signal, detached : true } ) `sleep 999 `
349
349
setTimeout ( ( ) => ac . abort ( ) , 100 )
350
350
351
351
try {
@@ -357,7 +357,7 @@ describe('core', () => {
357
357
} )
358
358
359
359
test ( 'kill() method works' , async ( ) => {
360
- let p = $ `sleep 9999 ` . nothrow ( )
360
+ let p = $ `sleep 999 ` . nothrow ( )
361
361
setTimeout ( ( ) => {
362
362
p . kill ( )
363
363
} , 100 )
@@ -471,7 +471,7 @@ describe('core', () => {
471
471
test ( 'timeout() works' , async ( ) => {
472
472
let exitCode , signal
473
473
try {
474
- await $ `sleep 9999 ` . timeout ( 10 , 'SIGKILL' )
474
+ await $ `sleep 999 ` . timeout ( 10 , 'SIGKILL' )
475
475
} catch ( p ) {
476
476
exitCode = p . exitCode
477
477
signal = p . signal
0 commit comments