Skip to content

Commit bcdd327

Browse files
committed
child test fixed
1 parent 584af8c commit bcdd327

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/tests/eternity/child-tests.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,13 @@ export default async function(this: TestConfig) {
112112
mockClock.add(TimeSpan.fromSeconds(5));
113113
await c.processQueueOnce();
114114
mockClock.add(TimeSpan.fromSeconds(5));
115-
await c.processQueueOnce();
116115

117-
const r = await storage.getWorkflow(id);
118-
assert.equal("done", r.state);
116+
for(let i = 1;i<3;i++) {
117+
await c.processQueueOnce();
118+
const r = await storage.getWorkflow(id);
119+
if (r.state === "done") {
120+
return;
121+
}
122+
}
123+
assert.fail();
119124
}

0 commit comments

Comments
 (0)