From 28782c95e3cf67b5541e4fd4dcf20d8f97ba28db Mon Sep 17 00:00:00 2001 From: "Mark S. Miller" Date: Sun, 5 May 2024 18:28:29 -0700 Subject: [PATCH] fixup! prepare for endo #2267 --- packages/async-flow/test/test-bad-host.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/async-flow/test/test-bad-host.js b/packages/async-flow/test/test-bad-host.js index aed2aaf9bdf1..12ad3d9b7183 100644 --- a/packages/async-flow/test/test-bad-host.js +++ b/packages/async-flow/test/test-bad-host.js @@ -139,7 +139,9 @@ const testBadHostReplay1 = async (t, zone, vowTools) => { }, { message: - 'converting badMethod result: "[Symbol(passStyle)]" property expected: "[Function ]"', + // 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); @@ -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 ]"', - ), - ], + ['doThrow', 2, Error(message)], ]); t.log('badHost replay1 done'); return promiseStep;