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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
b0e7efb5
Commit
b0e7efb5
authored
Jun 18, 2019
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flaky time related spec
Also removes test from quarantine
parent
04307096
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
spec/models/ci/pipeline_schedule_spec.rb
spec/models/ci/pipeline_schedule_spec.rb
+4
-2
No files found.
spec/models/ci/pipeline_schedule_spec.rb
View file @
b0e7efb5
...
...
@@ -128,8 +128,10 @@ describe Ci::PipelineSchedule do
context
'when pipeline schedule runs every minute'
do
let
(
:pipeline_schedule
)
{
create
(
:ci_pipeline_schedule
,
:every_minute
)
}
it
"updates next_run_at to the sidekiq worker's execution time"
,
:quarantine
do
expect
(
pipeline_schedule
.
next_run_at
).
to
eq
(
cron_worker_next_run_at
)
it
"updates next_run_at to the sidekiq worker's execution time"
do
Timecop
.
freeze
do
expect
(
pipeline_schedule
.
next_run_at
).
to
eq
(
cron_worker_next_run_at
)
end
end
end
...
...
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