Skip to content

Commit 6f31136

Browse files
committed
ci: debug
1 parent 6ef105d commit 6f31136

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/fixtures/process.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,17 @@ export class ProcessWrap {
2929
this._webcontainerProcess = webcontainerProcess;
3030
this._writer = webcontainerProcess.input.getWriter();
3131

32-
webcontainerProcess.exit.then(() => setDone());
32+
webcontainerProcess.exit
33+
.then(() => {
34+
console.log("Stream closed, tick");
35+
return new Promise((resolve) => setTimeout(resolve, 100));
36+
})
37+
.then(setDone);
3338

3439
this._webcontainerProcess.output.pipeTo(
3540
new WritableStream({
3641
write: (data) => {
42+
console.log("received data");
3743
this._output += data;
3844
this._listeners.forEach((fn) => fn());
3945
},

0 commit comments

Comments
 (0)