Skip to content

Commit 204740c

Browse files
authored
test: avoid double-closing server in client-request test (#5255)
1 parent d972f63 commit 204740c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

test/client-request.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ test('request dump with abort signal', async (t) => {
156156
t.ok(stackLines[4].startsWith('at RequestHandler.runInAsyncScope'))
157157
t.ok(stackLines[5].startsWith('at RequestHandler.onResponseStart'))
158158
t.ok(stackLines[6].startsWith('at Request.onResponseStart'))
159-
server.close()
160159
})
161160
ac.abort()
162161
})
@@ -195,7 +194,6 @@ test('request dump with POJO as invalid signal', async (t) => {
195194
t.ok(stackLines[3].startsWith('at RequestHandler.runInAsyncScope'))
196195
t.ok(stackLines[4].startsWith('at RequestHandler.onResponseStart'))
197196
t.ok(stackLines[5].startsWith('at Request.onResponseStart'))
198-
server.close()
199197
})
200198
})
201199
})
@@ -235,7 +233,6 @@ test('request dump with aborted signal', async (t) => {
235233
t.ok(stackLines[2].startsWith('at RequestHandler.runInAsyncScope'))
236234
t.ok(stackLines[3].startsWith('at RequestHandler.onResponseStart'))
237235
t.ok(stackLines[4].startsWith('at Request.onResponseStart'))
238-
server.close()
239236
})
240237
ac.abort()
241238
})

0 commit comments

Comments
 (0)