From b29f7b9acb243d3a487b102164b0e6f43af1f16d Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 6 Dec 2016 09:25:55 -0800 Subject: [PATCH] Clear interval before assert --- spec/api-browser-window-spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index e161cc08bf28..b80de7f9de5a 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -1619,8 +1619,8 @@ describe('browser-window module', function () { w.webContents.openDevTools({mode: 'bottom'}) ipcMain.once('answer', function (event, message) { - assert.equal(message.runtimeId, 'foo') clearInterval(showPanelIntervalId) + assert.equal(message.runtimeId, 'foo') done() }) })