Skip to content

Commit dd37b24

Browse files
committed
Fix flaky test.
1 parent c017ee3 commit dd37b24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/async/container/controller.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ def after(error = nil)
196196

197197
Process.kill(:HUP, pid)
198198

199-
expect(input.read(2)).to be == "I."
199+
# The ordering between the old child writing "I" and the new child writing "." is timing-dependent (blue-green restart starts the new container before stopping the old one). Accept either order.
200+
expect(input.read(2)).to (be == "I.").or(be == ".I")
200201
end
201202

202203
it "exits gracefully when receiving SIGINT" do

0 commit comments

Comments
 (0)