Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
If crashing within first 2min don't lose windows
Browse files Browse the repository at this point in the history
Fix #10349

Auditors: @bsclifton

This happens because a save would happen on init before the initial window state was present
  • Loading branch information
bbondy committed Aug 10, 2017
1 parent 559c111 commit 900c4e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/app/sessionStoreShutdownTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 900c4e7

Please sign in to comment.