Skip to content

Commit

Permalink
test(SwingSet): Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Mar 7, 2023
1 parent 9ae81dc commit 9843ef8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/SwingSet/test/bootstrap-syscall-failure.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function buildRootObject(vatPowers, vatParameters) {
() => testLog('p2 resolve (bad!)'),
e => testLog(`p2 reject ${e}`),
);
const p3 = E(badvat).begood(ourThing);
const p3 = E(badvat).begoodagain(ourThing);
p3.then(
() => testLog('p3 resolve (bad!)'),
e => testLog(`p3 reject ${e}`),
Expand Down
2 changes: 1 addition & 1 deletion packages/SwingSet/test/test-marshal.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ test('unserialize promise', async t => {
t.truthy(p instanceof Promise);
});

test('kernel serialzation of errors', async t => {
test('kernel serialization of errors', async t => {
// The kernel synthesizes e.g. `Error('vat-upgrade failure')`, so we
// need kmarshal to serialize those errors in a deterministic
// way. This test checks that we don't get surprising things like
Expand Down
2 changes: 1 addition & 1 deletion packages/SwingSet/test/vat-syscall-failure.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function setup(syscall, _state, _helpers, vatPowers) {
}
const { method, args } = extractMessage(vatDeliverObject);
vatPowers.testLog(`${method}`);
const thing = method === 'begood' ? args.slots[0] : 'o-3414159';
const thing = method.startsWith('begood') ? args.slots[0] : 'o-3414159';
syscall.send(thing, kser(['pretendToBeAThing', [method]]));
}
return dispatch;
Expand Down

0 comments on commit 9843ef8

Please sign in to comment.