summaryrefslogtreecommitdiff
path: root/tests/node_compat/test/parallel/test-event-emitter-error-monitor.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/node_compat/test/parallel/test-event-emitter-error-monitor.js')
-rw-r--r--tests/node_compat/test/parallel/test-event-emitter-error-monitor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/node_compat/test/parallel/test-event-emitter-error-monitor.js b/tests/node_compat/test/parallel/test-event-emitter-error-monitor.js
index d6676a8e1..e5df20e60 100644
--- a/tests/node_compat/test/parallel/test-event-emitter-error-monitor.js
+++ b/tests/node_compat/test/parallel/test-event-emitter-error-monitor.js
@@ -32,7 +32,7 @@ EE.emit('error', theErr);
// Verify it works with once
process.nextTick(() => EE.emit('error', theErr));
-assert.rejects(EventEmitter.once(EE, 'notTriggered'), theErr);
+assert.rejects(EventEmitter.once(EE, 'notTriggered'), theErr).then(common.mustCall());
// Only error events trigger error monitor
EE.on('aEvent', common.mustCall());