Skip to content

Commit

Permalink
chore(swingset): Reduce test sensitivity to compression ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Feb 3, 2025
1 parent 8093cf6 commit 58df056
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/SwingSet/test/xsnap-store.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ test(`create XS Machine, snapshot (${snapSize.raw} Kb), compress to smaller`, as
vat.makeSnapshotStream(),
);

t.log({ compressedSize, uncompressedSize: snapSize.raw });

t.true(
relativeSize(compressedSize, snapSize.raw) < 0.5,
relativeSize(compressedSize, snapSize.raw) < 0.60,
'compressed snapshots are smaller',
);
});
Expand All @@ -94,7 +96,7 @@ test('SES bootstrap, save, compress', async t => {
);

t.true(
relativeSize(compressedSize, snapSize.SESboot) < 0.5,
relativeSize(compressedSize, snapSize.SESboot) < 0.75,
'compressed snapshots are smaller',
);
});
Expand Down

0 comments on commit 58df056

Please sign in to comment.