Fixes flakey CI

This commit is contained in:
Josh Perez 2021-08-26 16:42:25 -04:00 committed by GitHub
parent d2503ffeff
commit 1973224adb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ const toMediaItem = (date: Date): MediaItemType => ({
received_at: date.getTime(),
received_at_ms: date.getTime(),
attachments: [],
sent_at: Date.now(),
sent_at: date.getTime(),
},
attachment: {
fileName: 'fileName',
@ -63,7 +63,7 @@ describe('groupMediaItemsByDate', () => {
received_at: 1523534400000,
received_at_ms: 1523534400000,
attachments: [],
sent_at: Date.now(),
sent_at: 1523534400000,
},
attachment: {
fileName: 'fileName',
@ -80,7 +80,7 @@ describe('groupMediaItemsByDate', () => {
received_at: 1523491260000,
received_at_ms: 1523491260000,
attachments: [],
sent_at: Date.now(),
sent_at: 1523491260000,
},
attachment: {
fileName: 'fileName',
@ -102,7 +102,7 @@ describe('groupMediaItemsByDate', () => {
received_at: 1523491140000,
received_at_ms: 1523491140000,
attachments: [],
sent_at: Date.now(),
sent_at: 1523491140000,
},
attachment: {
fileName: 'fileName',
@ -124,7 +124,7 @@ describe('groupMediaItemsByDate', () => {
received_at: 1523232060000,
received_at_ms: 1523232060000,
attachments: [],
sent_at: Date.now(),
sent_at: 1523232060000,
},
attachment: {
fileName: 'fileName',
@ -146,7 +146,7 @@ describe('groupMediaItemsByDate', () => {
received_at: 1523231940000,
received_at_ms: 1523231940000,
attachments: [],
sent_at: Date.now(),
sent_at: 1523231940000,
},
attachment: {
fileName: 'fileName',
@ -163,7 +163,7 @@ describe('groupMediaItemsByDate', () => {
received_at: 1522540860000,
received_at_ms: 1522540860000,
attachments: [],
sent_at: Date.now(),
sent_at: 1522540860000,
},
attachment: {
fileName: 'fileName',
@ -187,7 +187,7 @@ describe('groupMediaItemsByDate', () => {
received_at: 1522540740000,
received_at_ms: 1522540740000,
attachments: [],
sent_at: Date.now(),
sent_at: 1522540740000,
},
attachment: {
fileName: 'fileName',
@ -204,7 +204,7 @@ describe('groupMediaItemsByDate', () => {
received_at: 1519912800000,
received_at_ms: 1519912800000,
attachments: [],
sent_at: Date.now(),
sent_at: 1519912800000,
},
attachment: {
fileName: 'fileName',
@ -228,7 +228,7 @@ describe('groupMediaItemsByDate', () => {
received_at: 1298937540000,
received_at_ms: 1298937540000,
attachments: [],
sent_at: Date.now(),
sent_at: 1298937540000,
},
attachment: {
fileName: 'fileName',
@ -245,7 +245,7 @@ describe('groupMediaItemsByDate', () => {
received_at: 1296554400000,
received_at_ms: 1296554400000,
attachments: [],
sent_at: Date.now(),
sent_at: 1296554400000,
},
attachment: {
fileName: 'fileName',