Skip to content

Commit 7b7e3dc

Browse files
committed
Fix: stop reading after RunCompletedEvent to end stream
1 parent c564746 commit 7b7e3dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Asynkron.TestRunner/WorkerProcess.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ public async IAsyncEnumerable<ProtocolMessage> RunAsync(
147147
await foreach (var msg in ReadEventsAsync(ct))
148148
{
149149
yield return msg;
150+
151+
// Stop after run completes
152+
if (msg is RunCompletedEvent)
153+
yield break;
150154
}
151155
}
152156

0 commit comments

Comments
 (0)