Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a12f442

Browse files
cjihrigGabriel Schulhof
authored and
Gabriel Schulhof
committedApr 16, 2018
test: remove unnecessary timer
The timer in NAPI's test_callback_scope/test-resolve-async.js can be removed. If the test fails, it will timeout on its own. The extra timer increases the chances of the test being flaky. PR-URL: nodejs#18719 Fixes: nodejs#18702 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 7996463 commit a12f442

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
'use strict';
22

33
const common = require('../../common');
4-
const assert = require('assert');
54
const { testResolveAsync } = require(`./build/${common.buildType}/binding`);
65

7-
let called = false;
8-
testResolveAsync().then(common.mustCall(() => {
9-
called = true;
10-
}));
11-
12-
setTimeout(common.mustCall(() => { assert(called); }),
13-
common.platformTimeout(20));
6+
testResolveAsync().then(common.mustCall());

0 commit comments

Comments
 (0)
Please sign in to comment.