From 900c4e7d31df39683aa93a9af6c9a988bfab84a3 Mon Sep 17 00:00:00 2001 From: "Brian R. Bondy" Date: Wed, 9 Aug 2017 23:37:04 -0400 Subject: [PATCH] If crashing within first 2min don't lose windows Fix #10349 Auditors: @bsclifton This happens because a save would happen on init before the initial window state was present --- test/unit/app/sessionStoreShutdownTest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/app/sessionStoreShutdownTest.js b/test/unit/app/sessionStoreShutdownTest.js index 7109a037296..7476961693c 100644 --- a/test/unit/app/sessionStoreShutdownTest.js +++ b/test/unit/app/sessionStoreShutdownTest.js @@ -356,10 +356,10 @@ describe('sessionStoreShutdown unit tests', function () { }) }) describe('startSessionSaveInterval', function () { - before(function() { + before(function () { this.initiateSessionStateSave = sinon.spy(sessionStoreShutdown, 'initiateSessionStateSave') }) - after(function() { + after(function () { this.initiateSessionStateSave.restore() }) it('does not call initiateSessionStateSave', function () {