Skip to content

Commit

Permalink
fix(swingset): test/vat-controller-one: disregard non-message deliveries
Browse files Browse the repository at this point in the history
The upcoming #3482 fix will cause this to start seeing dropExports, and it
needs to ignore those to avoid errors in test-controller.js
  • Loading branch information
warner committed Jul 22, 2021
1 parent 59a78e6 commit 706be79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/SwingSet/test/vat-controller-1.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import { extractMessage } from './util';

export default function setup(syscall, _state, _helpers, vatPowers) {
function dispatch(vatDeliverObject) {
const { facetID, method, args } = extractMessage(vatDeliverObject);
vatPowers.testLog(JSON.stringify({ target: facetID, method, args }));
if (vatDeliverObject[0] === 'message') {
const { facetID, method, args } = extractMessage(vatDeliverObject);
vatPowers.testLog(JSON.stringify({ target: facetID, method, args }));
}
}
return dispatch;
}

0 comments on commit 706be79

Please sign in to comment.