提交 b0360335 编写于 作者: G Grzegorz Bizon 提交者: Filipa Lacerda

Assert on no Gitaly requests in a job show tests

上级 d457f3d3
......@@ -496,10 +496,8 @@ describe Projects::JobsController, :clean_gitlab_redis_shared_state do
end
def get_show_json
get_show(id: job.id, format: :json)
puts 'X'*50
puts Gitlab::GitalyClient.get_request_count
expect { get_show(id: job.id, format: :json) }
.not_to change { Gitlab::GitalyClient.get_request_count }
end
def get_show(**extra_params)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册