提交 b5e36dd0 编写于 作者: A Aaron Patterson

don't touch the response object until after we call `get`

上级 d175ab2b
......@@ -281,10 +281,9 @@ def test_async_stream
@controller.latch = Concurrent::CountDownLatch.new
parts = ['hello', 'world']
@controller.request = @request
@controller.response = @response
get :blocking_stream
t = Thread.new(@response) { |resp|
t = Thread.new(response) { |resp|
resp.await_commit
resp.stream.each do |part|
assert_equal parts.shift, part
......@@ -294,8 +293,6 @@ def test_async_stream
end
}
@controller.process :blocking_stream
assert t.join(3), 'timeout expired before the thread terminated'
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册