Fix specs

This commit is contained in:
Kamil Trzcinski 2017-01-24 22:00:49 +01:00
parent 3441b4f93b
commit c46445af92
No known key found for this signature in database
GPG key ID: 4505F5C7E12C6A5A
2 changed files with 2 additions and 1 deletions

View file

@ -18,6 +18,7 @@ module Ci
if current_runner.is_runner_queue_value_latest?(params[:last_update])
header 'X-GitLab-Last-Update', params[:last_update]
Gitlab::Metrics.add_event(:build_not_found_cached)
return build_not_found!
end

View file

@ -171,7 +171,7 @@ module Ci
end
def execute(runner)
described_class.new(runner).execute
described_class.new(runner).execute.first
end
end
end