Commit 4e51ee99 authored by Jasper Maes's avatar Jasper Maes

Rails 5: fix mysql milliseconds problem in prometheus alert event spec

parent d6592df6
---
title: 'Rails 5: fix mysql milliseconds problem in prometheus alert event spec'
merge_request: 7828
author: Jasper Maes
type: other
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment