mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Fix session transaction issue
This commit is contained in:
@@ -1477,6 +1477,16 @@ describe('SignalProtocolStore', () => {
|
||||
|
||||
assert.deepEqual(order, [1, 2, 3]);
|
||||
});
|
||||
|
||||
it('should not deadlock in archiveSiblingSessions', async () => {
|
||||
const id = `${number}.1`;
|
||||
const sibling = `${number}.2`;
|
||||
|
||||
await store.storeSession(id, getSessionRecord(true));
|
||||
await store.storeSession(sibling, getSessionRecord(true));
|
||||
|
||||
await store.archiveSiblingSessions(id, { zone });
|
||||
});
|
||||
});
|
||||
|
||||
describe('Not yet processed messages', () => {
|
||||
|
||||
Reference in New Issue
Block a user