Skip to content

Commit

Permalink
fixup! minor
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Mar 22, 2024
1 parent 3c5db54 commit c5fd1d7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/zone/test/async-flow/test-async-flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ const testGoodReplay = async (t, zone, vowTools) => {
// awaiting a promise that won't be resolved until this incarnation
await g2;
t.log(' goodReplay woke up!');
const prod2 = gOrch7.scale(3);
// same question. different answer
t.is(prod2, 42);
},
};

Expand All @@ -271,7 +274,7 @@ const testGoodReplay = async (t, zone, vowTools) => {
const { vow: v1 } = zone.makeOnce('v1', () => Fail`v1 expected`);

const logDump = flow.dump();
t.is(logDump.length, firstLogLen + 1);
t.is(logDump.length, firstLogLen + 3);
t.deepEqual(logDump, [
['doFulfill', v1, 'x'],
['checkCall', hOrch7, 'vow', [], 1],
Expand All @@ -286,6 +289,9 @@ const testGoodReplay = async (t, zone, vowTools) => {
],
// new stuff
['doFulfill', v2, 'y'],
['checkCall', hOrch7, 'scale', [3], firstLogLen + 1],
// same question. different answer
['doReturn', firstLogLen + 1, 42],
]);

t.is(await when(outcomeV), undefined);
Expand Down

0 comments on commit c5fd1d7

Please sign in to comment.