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
126b6bbc
Commit
126b6bbc
authored
Jan 29, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use faster model updates in #update_runner_info spec
parent
63ecb57f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/models/ci/runner_spec.rb
spec/models/ci/runner_spec.rb
+2
-2
No files found.
spec/models/ci/runner_spec.rb
View file @
126b6bbc
...
@@ -400,7 +400,7 @@ describe Ci::Runner do
...
@@ -400,7 +400,7 @@ describe Ci::Runner do
context
'when database was updated recently'
do
context
'when database was updated recently'
do
before
do
before
do
runner
.
update
(
contacted_at:
Time
.
now
)
runner
.
contacted_at
=
Time
.
now
end
end
it
'updates cache'
do
it
'updates cache'
do
...
@@ -412,7 +412,7 @@ describe Ci::Runner do
...
@@ -412,7 +412,7 @@ describe Ci::Runner do
context
'when database was not updated recently'
do
context
'when database was not updated recently'
do
before
do
before
do
runner
.
update
(
contacted_at:
2
.
hours
.
ago
)
runner
.
contacted_at
=
2
.
hours
.
ago
end
end
it
'updates database'
do
it
'updates database'
do
...
...
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