Fix flaky test

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2025-02-26 16:02:38 -06:00 committed by GitHub
parent 0385328144
commit 0c289ea8f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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