Skip to content

Commit 3621b2c

Browse files
test(jco): adapt closed stream test to async iterator semantics
1 parent 2117561 commit 3621b2c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/jco/test/p3/ported/wasmtime/component-async/closed-stream.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ suite("closed stream scenario", () => {
2626
cleanup = res.cleanup;
2727

2828
const stream = instance["local:local/closed-stream"].get();
29-
const v = await stream.next();
30-
assert.strictEqual(v, undefined);
29+
const { value, done } = await stream.next();
30+
assert.strictEqual(value, undefined);
31+
assert.isTrue(done, undefined);
3132
} finally {
3233
if (cleanup) {
3334
await cleanup();

0 commit comments

Comments
 (0)