diff --git a/test/fetch/long-lived-abort-controller.js b/test/fetch/long-lived-abort-controller.js index 1518989e4fb..585cfcfcfc5 100644 --- a/test/fetch/long-lived-abort-controller.js +++ b/test/fetch/long-lived-abort-controller.js @@ -21,7 +21,8 @@ test('long-lived-abort-controller', { skip: isNode18 }, async (t) => { t.after(closeServerAsPromise(server)) let warningEmitted = false - function onWarning () { + function onWarning (warning) { + console.error(warning) warningEmitted = true } process.on('warning', onWarning)