Commit 2723dea7 authored by Piotr Skorupa's avatar Piotr Skorupa

Add custom message to SQL metrics spec

parent 48b75ece
......@@ -78,7 +78,14 @@ RSpec.describe Gitlab::Usage::ServicePingReport, :use_clean_rails_memory_store_c
remove_ignored_metrics!(report)
expect(report).to eq(stored_queries_hash)
message = <<~MSG
# This example failed because it detected changes to Service Ping SQL metrics queries.
#
# Try regenerating the queries list and review the changes:
# RAILS_ENV=test bin/rake gitlab:usage_data:generate_sql_metrics_fixture
MSG
expect(report).to eq(stored_queries_hash), message
end
def remove_ignored_metrics!(hash)
......
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