Commit c68f5270 authored by Markus Doits's avatar Markus Doits

fix failing specs due to latest changes

parent 63aa35cb
...@@ -53,11 +53,11 @@ module Gitlab ...@@ -53,11 +53,11 @@ module Gitlab
describe 'retry entry' do describe 'retry entry' do
context 'when retry count is specified' do context 'when retry count is specified' do
let(:config) do let(:config) do
YAML.dump(rspec: { script: 'rspec', retry: 1 }) YAML.dump(rspec: { script: 'rspec', retry: { max: 1 } })
end end
it 'includes retry count in build options attribute' do it 'includes retry count in build options attribute' do
expect(subject[:options]).to include(retry: 1) expect(subject[:options]).to include(retry: { max: 1 })
end end
end end
......
...@@ -671,9 +671,9 @@ describe Ci::ProcessPipelineService, '#execute' do ...@@ -671,9 +671,9 @@ describe Ci::ProcessPipelineService, '#execute' do
context 'when builds with auto-retries are configured' do context 'when builds with auto-retries are configured' do
before do before do
create_build('build:1', stage_idx: 0, user: user, options: { retry: 2 }) create_build('build:1', stage_idx: 0, user: user, options: { retry: { max: 2 } })
create_build('test:1', stage_idx: 1, user: user, when: :on_failure) create_build('test:1', stage_idx: 1, user: user, when: :on_failure)
create_build('test:2', stage_idx: 1, user: user, options: { retry: 1 }) create_build('test:2', stage_idx: 1, user: user, options: { retry: { max: 1 } })
end end
it 'automatically retries builds in a valid order' do it 'automatically retries builds in a valid order' do
......
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