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
4e51ee99
Commit
4e51ee99
authored
Oct 06, 2018
by
Jasper Maes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rails 5: fix mysql milliseconds problem in prometheus alert event spec
parent
d6592df6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
ee/changelogs/unreleased/rails5-mysql-prometheus-alert-spec.yml
...ngelogs/unreleased/rails5-mysql-prometheus-alert-spec.yml
+5
-0
ee/spec/models/prometheus_alert_event_spec.rb
ee/spec/models/prometheus_alert_event_spec.rb
+2
-2
No files found.
ee/changelogs/unreleased/rails5-mysql-prometheus-alert-spec.yml
0 → 100644
View file @
4e51ee99
---
title
:
'
Rails
5:
fix
mysql
milliseconds
problem
in
prometheus
alert
event
spec'
merge_request
:
7828
author
:
Jasper Maes
type
:
other
ee/spec/models/prometheus_alert_event_spec.rb
View file @
4e51ee99
...
...
@@ -58,7 +58,7 @@ describe PrometheusAlertEvent do
expect
(
result
).
to
eq
(
true
)
expect
(
subject
).
to
be_firing
expect
(
subject
.
started_at
).
to
eq
(
started_at
)
expect
(
subject
.
started_at
).
to
be_like_time
(
started_at
)
end
end
...
...
@@ -84,7 +84,7 @@ describe PrometheusAlertEvent do
expect
(
result
).
to
eq
(
true
)
expect
(
subject
).
to
be_resolved
expect
(
subject
.
ended_at
).
to
eq
(
ended_at
)
expect
(
subject
.
ended_at
).
to
be_like_time
(
ended_at
)
expect
(
subject
.
payload_key
).
to
be_nil
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