Skip to content

Commit

Permalink
fixup! eventLoopIteration
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Mar 21, 2024
1 parent 95efeaa commit 9a00502
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/zone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@endo/promise-kit": "^1.0.4"
},
"devDependencies": {
"@agoric/internal": "^0.3.2",
"@agoric/swingset-liveslots": "^0.10.2",
"@endo/env-options": "^1.1.1",
"@endo/patterns": "^1.2.0",
Expand Down
5 changes: 3 additions & 2 deletions packages/zone/test/async-flow/test-async-flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import { Fail } from '@endo/errors';
// import { E } from '@endo/far';
// import E from '@agoric/vow/src/E.js';
import { eventLoopIteration } from '@agoric/internal/src/testing-utils.js';
import { isVow } from '@agoric/vow/src/vow-utils.js';
import { makePromiseKit } from '@endo/promise-kit';
import { prepareVowTools } from '@agoric/vow';
Expand Down Expand Up @@ -218,14 +219,14 @@ await test.serial('test durable async-flow', async t => {
const vowTools1 = prepareWatchableVowTools(zone1);
await testFirstPlay(t, zone1, vowTools1);

await new Promise(r => setTimeout(r));
await eventLoopIteration();

nextLife();
const zone2 = makeDurableZone(getBaggage(), 'durableRoot');
const vowTools2 = prepareWatchableVowTools(zone2);
await testBadReplay(t, zone2, vowTools2, asyncFlowVerbose());

await new Promise(r => setTimeout(r));
await eventLoopIteration();

// nextLife();
// const zone3 = makeDurableZone(getBaggage(), 'durableRoot');
Expand Down

0 comments on commit 9a00502

Please sign in to comment.