Skip to content
Closed
Prev Previous commit
Next Next commit
Clarifying comment about destroy hooks in test-promise.js
  • Loading branch information
Matt Loring committed May 23, 2017
commit 012171a86db580ae46c6e1e22ebf514e295b4390
1 change: 1 addition & 0 deletions test/async-hooks/test-promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ function onexit() {
assert.strictEqual(a1.type, 'PROMISE', 'promise request');
assert.strictEqual(typeof a1.uid, 'number', 'uid is a number');
assert.strictEqual(a1.triggerId, 1, 'parent uid 1');
// We expect a destroy hook as well but we cannot guarentee predictable gc.
checkInvocations(a1, { init: 1, before: 1, after: 1 }, 'when process exits');
}