Commit b0360335 authored by Grzegorz Bizon's avatar Grzegorz Bizon Committed by Filipa Lacerda

Assert on no Gitaly requests in a job show tests

parent d457f3d3
...@@ -496,10 +496,8 @@ describe Projects::JobsController, :clean_gitlab_redis_shared_state do ...@@ -496,10 +496,8 @@ describe Projects::JobsController, :clean_gitlab_redis_shared_state do
end end
def get_show_json def get_show_json
get_show(id: job.id, format: :json) expect { get_show(id: job.id, format: :json) }
.not_to change { Gitlab::GitalyClient.get_request_count }
puts 'X'*50
puts Gitlab::GitalyClient.get_request_count
end end
def get_show(**extra_params) def get_show(**extra_params)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment