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
9f53ad3a
Commit
9f53ad3a
authored
Oct 28, 2018
by
Jasper Maes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rails5: fix flaky mysql reset pipeline minutes spec
parent
06ead455
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
ee/changelogs/unreleased/rails5-fix-flaky-mysql-reset-pipeline-spec.yml
...unreleased/rails5-fix-flaky-mysql-reset-pipeline-spec.yml
+5
-0
ee/spec/features/admin/admin_reset_pipeline_minutes_spec.rb
ee/spec/features/admin/admin_reset_pipeline_minutes_spec.rb
+6
-2
No files found.
ee/changelogs/unreleased/rails5-fix-flaky-mysql-reset-pipeline-spec.yml
0 → 100644
View file @
9f53ad3a
---
title
:
'
Rails5:
fix
flaky
mysql
reset
pipeline
minutes
spec'
merge_request
:
8122
author
:
Jasper Maes
type
:
other
ee/spec/features/admin/admin_reset_pipeline_minutes_spec.rb
View file @
9f53ad3a
...
...
@@ -14,13 +14,17 @@ describe 'Reset namespace pipeline minutes' do
end
it
'resets pipeline minutes'
do
click_link
'Reset pipeline minutes'
time
=
Time
.
now
Timecop
.
freeze
(
time
)
do
click_link
'Reset pipeline minutes'
end
expect
(
page
).
to
have_selector
(
'.flash-notice'
)
expect
(
current_path
).
to
include
(
namespace
.
name
)
expect
(
namespace
.
namespace_statistics
.
reload
.
shared_runners_seconds
).
to
eq
(
0
)
expect
(
namespace
.
namespace_statistics
.
reload
.
shared_runners_seconds_last_reset
).
to
be_like_time
(
Time
.
now
)
expect
(
namespace
.
namespace_statistics
.
reload
.
shared_runners_seconds_last_reset
).
to
be_like_time
(
time
)
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