From d472704912f8d2653eed1bc5e7912ea1343ca2c3 Mon Sep 17 00:00:00 2001 From: Anatoli Papirovski Date: Tue, 2 Jan 2018 20:35:19 -0500 Subject: [PATCH] test: fix flaky test-resolve-async PR-URL: https://github.com/nodejs/node/pull/17957 Reviewed-By: James M Snell Reviewed-By: Yuta Hiroto Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Michael Dawson Reviewed-By: Ruben Bridgewater --- test/addons/callback-scope/test-resolve-async.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/addons/callback-scope/test-resolve-async.js b/test/addons/callback-scope/test-resolve-async.js index e9f4b9044c0154..98e1910b49df7b 100644 --- a/test/addons/callback-scope/test-resolve-async.js +++ b/test/addons/callback-scope/test-resolve-async.js @@ -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));