File tree 1 file changed +3
-6
lines changed
test/addons/async-hooks-promise
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,14 @@ if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) {
13
13
// Baseline to make sure the internal field isn't being set.
14
14
assert . strictEqual (
15
15
binding . getPromiseField ( Promise . resolve ( 1 ) ) ,
16
- 0 ,
17
- 'Promise internal field used despite missing enabled AsyncHook' ) ;
16
+ 0 ) ;
18
17
19
18
const hook0 = async_hooks . createHook ( { } ) . enable ( ) ;
20
19
21
20
// Check that no PromiseWrap is created when there are no hook callbacks.
22
21
assert . strictEqual (
23
22
binding . getPromiseField ( Promise . resolve ( 1 ) ) ,
24
- 0 ,
25
- 'Promise internal field used despite missing enabled AsyncHook' ) ;
23
+ 0 ) ;
26
24
27
25
hook0 . disable ( ) ;
28
26
@@ -47,6 +45,5 @@ hook1.disable();
47
45
setImmediate ( ( ) => {
48
46
assert . strictEqual (
49
47
binding . getPromiseField ( Promise . resolve ( 1 ) ) ,
50
- 0 ,
51
- 'Promise internal field used despite missing enabled AsyncHook' ) ;
48
+ 0 ) ;
52
49
} ) ;
You can’t perform that action at this time.
0 commit comments