test: fix flaky test-resolve-async
PR-URL: https://github.com/nodejs/node/pull/17957 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
b43a496092
commit
d72c78b19c
@ -5,9 +5,6 @@ const assert = require('assert');
|
||||
const { testResolveAsync } = require(`./build/${common.buildType}/binding`);
|
||||
|
||||
let called = false;
|
||||
testResolveAsync().then(common.mustCall(() => {
|
||||
called = true;
|
||||
}));
|
||||
testResolveAsync().then(() => { called = true; });
|
||||
|
||||
setTimeout(common.mustCall(() => { assert(called); }),
|
||||
common.platformTimeout(20));
|
||||
setTimeout(() => { assert(called); }, common.platformTimeout(50));
|
||||
|
Loading…
x
Reference in New Issue
Block a user