You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
For now, shelve persistance across sessions
This commit is contained in:
@ -151,7 +151,7 @@ describe('DecryptionFailureTracker', function() {
|
||||
done();
|
||||
});
|
||||
|
||||
it('should not track a failure for an event that was tracked in a previous session', (done) => {
|
||||
xit('should not track a failure for an event that was tracked in a previous session', (done) => {
|
||||
// This test uses localStorage, clear it beforehand
|
||||
localStorage.clear();
|
||||
|
||||
@ -171,7 +171,9 @@ describe('DecryptionFailureTracker', function() {
|
||||
|
||||
// Simulate the browser refreshing by destroying tracker and creating a new tracker
|
||||
const secondTracker = new DecryptionFailureTracker((failure) => failures.push(failure));
|
||||
secondTracker.loadTrackedEventHashMap();
|
||||
|
||||
//secondTracker.loadTrackedEventHashMap();
|
||||
|
||||
secondTracker.eventDecrypted(decryptedEvent);
|
||||
secondTracker.checkFailures(Infinity);
|
||||
secondTracker.trackFailure();
|
||||
|
Reference in New Issue
Block a user