Skip to content

Commit

Permalink
fix(SwingSet): Adjust SES change detectors
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Sep 23, 2021
1 parent fb199c9 commit 3efb36e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/SwingSet/test/test-xsnap-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ test('SES bootstrap, save, compress', async t => {
const zfile = path.resolve(pool.name, `${h}.gz`);
t.is(
relativeSize(zfile, snapSize.SESboot),
snapSize.compression,
0.2,
'compressed snapshots are smaller',
);
});
Expand Down Expand Up @@ -167,15 +167,15 @@ test('XS + SES snapshots are deterministic', async t => {
const h2 = await store.save(vat.snapshot);
t.is(
h2,
'3659d88bd99032afa15dbe5f938182dffa63abad2cfe53df2f81e8646af2d8b3',
'f62c6fce5accbbfbb5f08bb25f9414e9ba611359af1fb3a889d6171e25e58d6a',
'after SES boot',
);

await vat.evaluate('globalThis.x = harden({a: 1})');
const h3 = await store.save(vat.snapshot);
t.is(
h3,
'b938034b72a3bfa68accb802554cd6bc1c08bbcb8fe80573dabec8584b4ddd9c',
'911f4ea5fa42b5245d7024f269c59bdf382dc0521146ecc03e017136023f9435',
'after use of harden()',
);
});

0 comments on commit 3efb36e

Please sign in to comment.