Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
3ea4a139
Commit
3ea4a139
authored
Apr 07, 2017
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Yet, another errors
parent
0872b854
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
db/migrate/20170407140450_add_index_to_next_run_at_and_active.rb
...ate/20170407140450_add_index_to_next_run_at_and_active.rb
+1
-1
spec/workers/trigger_schedule_worker_spec.rb
spec/workers/trigger_schedule_worker_spec.rb
+4
-1
No files found.
db/migrate/20170407140450_add_index_to_next_run_at_and_active.rb
View file @
3ea4a139
...
@@ -13,6 +13,6 @@ class AddIndexToNextRunAtAndActive < ActiveRecord::Migration
...
@@ -13,6 +13,6 @@ class AddIndexToNextRunAtAndActive < ActiveRecord::Migration
end
end
def
down
def
down
remove_index
:ci_trigger_schedules
,
[
:active
,
:next_run_at
]
remove_
concurrent_
index
:ci_trigger_schedules
,
[
:active
,
:next_run_at
]
end
end
end
end
spec/workers/trigger_schedule_worker_spec.rb
View file @
3ea4a139
...
@@ -57,7 +57,10 @@ describe TriggerScheduleWorker do
...
@@ -57,7 +57,10 @@ describe TriggerScheduleWorker do
end
end
context
'when next_run_at is nil'
do
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
it
'does not create a new pipeline'
do
expect
{
worker
.
perform
}.
not_to
change
{
Ci
::
Pipeline
.
count
}
expect
{
worker
.
perform
}.
not_to
change
{
Ci
::
Pipeline
.
count
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment