Skip to content

Commit a3134b8

Browse files
fix: fix race condition in test where file desciptor would not be ready
1 parent a51442f commit a3134b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/runner_fifo.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ test "test runner fifo" {
140140
error_occurred: bool = false,
141141

142142
pub fn func(ctx: *@This()) void {
143-
const received_cmd = ctx.ctl_pipe.recvCmd() catch |err| {
143+
const received_cmd = ctx.ctl_pipe.waitForResponse(null) catch |err| {
144144
std.debug.print("Failed to receive command: {}\n", .{err});
145145
ctx.error_occurred = true;
146146
return;

0 commit comments

Comments
 (0)