Fix flaky test

This commit is contained in:
Fedor Indutny
2025-02-26 13:43:36 -08:00
committed by GitHub
parent 9fede7e467
commit 456114e397

View File

@@ -33,6 +33,8 @@ describe('backup/conversations', () => {
});
it('roundtrips 1:1 conversations', async () => {
const firstUnregisteredAt = Date.now();
const fields: Partial<ConversationAttributesType> = {
systemGivenName: 'systemGivenName',
systemFamilyName: 'systemFamilyName',
@@ -48,8 +50,8 @@ describe('backup/conversations', () => {
e164: '+16175550000',
pni: generatePni(),
removalStage: 'justNotification',
firstUnregisteredAt: Date.now(),
discoveredUnregisteredAt: Date.now(),
firstUnregisteredAt,
discoveredUnregisteredAt: firstUnregisteredAt,
profileKey: Bytes.toBase64(randomBytes(32)),
profileSharing: true,
};