Skip to content

Commit 39bdab6

Browse files
committed
ci: avoid getting a rubocop error
1 parent fc81c62 commit 39bdab6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/dummy/spec/helpers/react_on_rails_pro_helper_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,10 @@ def mock_request_and_response(mock_chunks = chunks, count: 1)
343343
mock_streaming_response(%r{http://localhost:3800/bundles/[a-f0-9]{32}-test/render/[a-f0-9]{32}}, 200,
344344
count: count) do |yielder|
345345
if mock_chunks.is_a?(Async::Queue)
346-
while (chunk = mock_chunks.dequeue)
346+
loop do
347+
chunk = mock_chunks.dequeue
348+
break if chunk.nil?
349+
347350
chunks_read << chunk
348351
yielder.call("#{chunk.to_json}\n")
349352
end

0 commit comments

Comments
 (0)