Fix flaky test
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
parent
0385328144
commit
0c289ea8f0
1 changed files with 4 additions and 2 deletions
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue