diff options
Diffstat (limited to 'spec/lib/gitlab/alerting/alert_spec.rb')
-rw-r--r-- | spec/lib/gitlab/alerting/alert_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/alerting/alert_spec.rb b/spec/lib/gitlab/alerting/alert_spec.rb index a0582515f3d..d582ff6f32a 100644 --- a/spec/lib/gitlab/alerting/alert_spec.rb +++ b/spec/lib/gitlab/alerting/alert_spec.rb @@ -253,7 +253,7 @@ describe Gitlab::Alerting::Alert do include_context 'gitlab alert' it 'returns a fingerprint' do - plain_fingerprint = [alert.metric_id, alert.starts_at].join('/') + plain_fingerprint = [alert.metric_id, alert.starts_at_raw].join('/') is_expected.to eq(Digest::SHA1.hexdigest(plain_fingerprint)) end @@ -263,7 +263,7 @@ describe Gitlab::Alerting::Alert do include_context 'full query' it 'returns a fingerprint' do - plain_fingerprint = [alert.starts_at, alert.title, alert.full_query].join('/') + plain_fingerprint = [alert.starts_at_raw, alert.title, alert.full_query].join('/') is_expected.to eq(Digest::SHA1.hexdigest(plain_fingerprint)) end |