Skip to content

Commit b531a92

Browse files
committed
Improve reliability of keyed child test.
1 parent c67867f commit b531a92

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/async/container/controller.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,16 @@ def controller.setup(container)
2525
container.spawn(key: "test") do |instance|
2626
instance.ready!
2727

28-
sleep(0.2)
29-
3028
@output.write(".")
3129
@output.flush
3230

33-
sleep(0.4)
31+
sleep(0.2)
3432
end
3533

3634
container.spawn do |instance|
3735
instance.ready!
3836

39-
sleep(0.3)
37+
sleep(0.1)
4038

4139
@output.write(",")
4240
@output.flush
@@ -52,6 +50,7 @@ def controller.setup(container)
5250
controller.reload
5351

5452
expect(input.read(1)).to be == ","
53+
5554
controller.wait
5655
end
5756
end

0 commit comments

Comments
 (0)