Yet, another errors
This commit is contained in:
parent
0872b854cb
commit
3ea4a13925
|
@ -13,6 +13,6 @@ class AddIndexToNextRunAtAndActive < ActiveRecord::Migration
|
|||
end
|
||||
|
||||
def down
|
||||
remove_index :ci_trigger_schedules, [:active, :next_run_at]
|
||||
remove_concurrent_index :ci_trigger_schedules, [:active, :next_run_at]
|
||||
end
|
||||
end
|
||||
|
|
|
@ -57,7 +57,10 @@ describe TriggerScheduleWorker do
|
|||
end
|
||||
|
||||
context 'when next_run_at is nil' do
|
||||
let!(:trigger_schedule) { create(:ci_trigger_schedule, :nightly, next_run_at: nil) }
|
||||
before
|
||||
schedule = create(:ci_trigger_schedule, :nightly)
|
||||
schedule.update_column(:next_run_at, nil)
|
||||
end
|
||||
|
||||
it 'does not create a new pipeline' do
|
||||
expect { worker.perform }.not_to change { Ci::Pipeline.count }
|
||||
|
|
Loading…
Reference in New Issue