From d9f991809c0e5b51d09e78eb99b82b24459109aa Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Thu, 11 Feb 2021 10:09:48 -0600 Subject: [PATCH] test(snapstore): tolerate smaller compressed files --- packages/SwingSet/test/workers/test-snapstore.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/SwingSet/test/workers/test-snapstore.js b/packages/SwingSet/test/workers/test-snapstore.js index dc64e3023e9a..855083e1ba9a 100644 --- a/packages/SwingSet/test/workers/test-snapstore.js +++ b/packages/SwingSet/test/workers/test-snapstore.js @@ -102,7 +102,10 @@ test('bootstrap, save, compress', async t => { ); const zfile = path.resolve(pool, `${h}.gz`); - t.is(Kb(zfile), snapSize.compressed, 'compressed snapshots are smaller'); + t.truthy( + Kb(zfile) <= snapSize.compressed, + 'compressed snapshots are smaller', + ); }); test('create, save, restore, resume', async t => {