call `get` instead of controller.process

we want the request to go through the test harness, not directly call
the methods on the controller
This commit is contained in:
Aaron Patterson 2015-09-23 16:44:00 -07:00
parent 208956c0d0
commit 10762e9e55
1 changed files with 11 additions and 13 deletions

View File

@ -320,20 +320,18 @@ module ActionController
def test_ignore_client_disconnect
@controller.latch = Concurrent::CountDownLatch.new
@controller.request = @request
@controller.response = @response
t = Thread.new(@response) { |resp|
resp.await_commit
_, _, body = resp.to_a
body.each do
body.close
break
end
}
capture_log_output do |output|
@controller.process :ignore_client_disconnect
get :ignore_client_disconnect
t = Thread.new(response) { |resp|
resp.await_commit
_, _, body = resp.to_a
body.each do
body.close
break
end
}
t.join
Timeout.timeout(3) do
@controller.latch.wait