Skip to content

Commit

Permalink
CI: fix TestIntegration#server_gets - until, not unless (#3549)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSP-Greg authored Nov 11, 2024
1 parent 271e4d0 commit 450784a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helpers/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def server_gets(match_obj, time_timeout, log: false)
error_retries = 0
line = ''

sleep 0.05 unless @server.is_a?(IO) or Process.clock_gettime(Process::CLOCK_MONOTONIC) > time_timeout
sleep 0.05 until @server.is_a?(IO) || Process.clock_gettime(Process::CLOCK_MONOTONIC) > time_timeout

raise Minitest::Assertion, "@server is not an IO" unless @server.is_a?(IO)
if Process.clock_gettime(Process::CLOCK_MONOTONIC) > time_timeout
Expand Down

0 comments on commit 450784a

Please sign in to comment.