@@ -33,7 +33,9 @@ describe('Fetch Resiliance Tests', () => {
3333 assert . strictEqual ( body , HELLO_MSG ) ;
3434
3535 // restart server
36- process . kill ( server . pid ) ;
36+ try {
37+ process . kill ( server . pid ) ;
38+ } catch ( ignore ) { /* ignore */ }
3739 server = await Server . launch ( 2 , true , HELLO_MSG , server . port ) ;
3840
3941 resp = await ctx . fetch ( `${ server . origin } /hello` ) ;
@@ -43,7 +45,9 @@ describe('Fetch Resiliance Tests', () => {
4345 assert . strictEqual ( body , HELLO_MSG ) ;
4446 } finally {
4547 await ctx . reset ( ) ;
46- process . kill ( server . pid ) ;
48+ try {
49+ process . kill ( server . pid ) ;
50+ } catch ( ignore ) { /* ignore */ }
4751 }
4852 } ) ;
4953
@@ -60,7 +64,9 @@ describe('Fetch Resiliance Tests', () => {
6064 assert . strictEqual ( body , HELLO_MSG ) ;
6165
6266 // stop h2 server
63- process . kill ( server . pid ) ;
67+ try {
68+ process . kill ( server . pid ) ;
69+ } catch ( ignore ) { /* ignore */ }
6470 // start h1 server
6571 server = await Server . launch ( 1 , true , HELLO_MSG , server . port ) ;
6672 // expect FetchError: Protocol error (message depends on node version)
@@ -73,7 +79,9 @@ describe('Fetch Resiliance Tests', () => {
7379 assert . strictEqual ( body , HELLO_MSG ) ;
7480 } finally {
7581 await ctx . reset ( ) ;
76- process . kill ( server . pid ) ;
82+ try {
83+ process . kill ( server . pid ) ;
84+ } catch ( ignore ) { /* ignore */ }
7785 }
7886 } ) ;
7987
@@ -100,7 +108,9 @@ describe('Fetch Resiliance Tests', () => {
100108 assert . strictEqual ( body , HELLO_MSG ) ;
101109 } finally {
102110 await ctx . reset ( ) ;
103- process . kill ( server . pid ) ;
111+ try {
112+ process . kill ( server . pid ) ;
113+ } catch ( ignore ) { /* ignore */ }
104114 }
105115 } ) ;
106116} ) ;
0 commit comments