app-backend: fix test race

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-09-18 14:51:49 +02:00
parent 7f3adafa14
commit 248c699e93
@@ -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(