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() }) })