Skip to content

Commit 00a8580

Browse files
legendecasaduh95
andauthored
fixup! nspector: fix compressed responses
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent cb4d3ef commit 00a8580

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/parallel/test-inspector-network-http-compressed.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,15 +245,13 @@ const testNetworkInspection = async () => {
245245
};
246246

247247
httpServer.listen(0, () => {
248-
httpsServer.listen(0, async () => {
248+
httpsServer.listen(0, () => (async () => {
249249
try {
250250
await session.post('Network.enable');
251251
await testNetworkInspection();
252252
await session.post('Network.disable');
253-
} catch (e) {
254-
assert.fail(e);
255253
} finally {
256254
terminate();
257255
}
258-
});
256+
})().then(common.mustCall()));
259257
});

0 commit comments

Comments
 (0)