Skip to content

Commit

Permalink
fixup! prepare for endo #2267
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed May 8, 2024
1 parent f02b3c4 commit 6d69b34
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions packages/async-flow/test/test-bad-host.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ const testBadHostReplay1 = async (t, zone, vowTools) => {
},
{
message:
'converting badMethod result: "[Symbol(passStyle)]" property expected: "[Function <anon>]"',
// Be compat with before and after
// https://github.com/endojs/endo/pull/2267
/converting badMethod result:/,
},
);
t.log(' badHost replay1 guest error caused by host error', gErr);
Expand All @@ -164,17 +166,16 @@ const testBadHostReplay1 = async (t, zone, vowTools) => {
const flow = adminAsyncFlow.getFlowForOutcomeVow(outcomeV);
await promiseStep;

t.deepEqual(flow.dump(), [
const logDump = flow.dump();
// Be compat with before and after
// https://github.com/endojs/endo/pull/2267
const message = logDump[3][2].message;

t.deepEqual(logDump, [
['checkCall', badHost, 'badMethod', [], 0],
['doReturn', 0, undefined],
['checkCall', badHost, 'badMethod', [], 2],
[
'doThrow',
2,
Error(
'converting badMethod result: "[Symbol(passStyle)]" property expected: "[Function <anon>]"',
),
],
['doThrow', 2, Error(message)],
]);
t.log('badHost replay1 done');
return promiseStep;
Expand Down

0 comments on commit 6d69b34

Please sign in to comment.