LibWeb: Wait for the correct condition in Stream tests

We were signaling that the test is complete too early in some Stream
tests.
This commit is contained in:
Timothy Flynn
2024-10-02 13:39:55 -04:00
committed by Tim Flynn
parent c9cbaeb59d
commit f3f7f77dbc
Notes: github-actions[bot] 2024-10-03 11:08:29 +00:00
3 changed files with 15 additions and 11 deletions

View File

@@ -11,8 +11,13 @@
return new Promise((resolve) => {
const textDecoder = new TextDecoder("utf-8");
println(textDecoder.decode(new Uint8Array(chunk)));
resolve();
});
},
close() {
done();
}
}
);
@@ -40,8 +45,6 @@
cancel() {},
});
stream.pipeTo(writableStream).then(() => {
done();
});
stream.pipeTo(writableStream);
});
</script>