Skip to content

Commit fc599af

Browse files
Stabilize uncooperative child fixture
Assisted-By: devx/a01026a8-dd63-4b91-bae4-aec7ee8f7fa3
1 parent 5be1ef0 commit fc599af

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

fixtures/async/container/a_child.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,15 @@ def start_uncooperative_child
3535
ready = ::IO.pipe
3636

3737
child = subject.call(name: "test-child") do
38-
ready.last.puts "ready"
38+
ready_sent = false
3939

4040
loop do
4141
begin
42+
unless ready_sent
43+
ready.last.puts "ready"
44+
ready_sent = true
45+
end
46+
4247
sleep
4348
rescue Interrupt
4449
# Ignore graceful shutdown.

0 commit comments

Comments
 (0)