Merge pull request #19995 from backstage/rugvip/1s

app-backend: fix test race
This commit is contained in:
Patrik Oldsberg
2023-09-18 15:27:06 +02:00
committed by GitHub
@@ -73,7 +73,7 @@ describe('StaticAssetsStore', () => {
expect(bar!.path).toBe('dir/bar.txt');
expect(
Math.abs(bar!.lastModifiedAt.getTime() - foo!.lastModifiedAt.getTime()),
).toBeLessThan(1000);
).toBeLessThan(1001); // 1s resolution on the timestamps
expect(bar!.content).toEqual(Buffer.from('bar'));
await expect(