This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 971
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent session from being destroyed when errors are raised
Taking a step towards #5512 - Take most of the session loading logic out of the massive try/catch - This adds 13+ tests to ensure behavior works as expected Before % Stmts: 52.65 % Branch: 45.77 % Funcs: 54.05 % Lines: 53.21 After % Stmts: 55.33 % Branch: 48.59 % Funcs: 56.41 % Lines: 56.41 - If file fails JSON.parse, a backup is saved. This is written synchronously Auditors: @bbondy, @bridiver Test Plan: `npm run unittest -- --grep="sessionStore unit tests"`
- Loading branch information
Showing
4 changed files
with
514 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.