diff --git a/test/sequential/test-inspector-stop-profile-after-done.js b/test/sequential/test-inspector-stop-profile-after-done.js index d0285df175b66f..b488281b0cf25f 100644 --- a/test/sequential/test-inspector-stop-profile-after-done.js +++ b/test/sequential/test-inspector-stop-profile-after-done.js @@ -11,17 +11,18 @@ async function runTests() { console.log(new Object()); if (c++ === 10) clearInterval(interval); - }, 10);`); + }, ${common.platformTimeout(30)});`); const session = await child.connectInspectorSession(); session.send([ - { 'method': 'Profiler.setSamplingInterval', 'params': { 'interval': 100 } }, - { 'method': 'Profiler.enable' }, - { 'method': 'Runtime.runIfWaitingForDebugger' }, - { 'method': 'Profiler.start' }]); + { method: 'Profiler.setSamplingInterval', + params: { interval: common.platformTimeout(300) } }, + { method: 'Profiler.enable' }, + { method: 'Runtime.runIfWaitingForDebugger' }, + { method: 'Profiler.start' }]); while (await child.nextStderrString() !== 'Waiting for the debugger to disconnect...'); - await session.send({ 'method': 'Profiler.stop' }); + await session.send({ method: 'Profiler.stop' }); session.disconnect(); assert.strictEqual(0, (await child.expectShutdown()).exitCode); }