Commit a71f7ece authored by Andrejs Cunskis's avatar Andrejs Cunskis Committed by Mark Lapierre

Mock runtime value for test_stats_formatter spec

parent 1a7d4adb
...@@ -93,6 +93,7 @@ describe QA::Support::Formatters::TestStatsFormatter do ...@@ -93,6 +93,7 @@ describe QA::Support::Formatters::TestStatsFormatter do
before do before do
allow(InfluxDB2::Client).to receive(:new).with(url, token, **influx_client_args) { influx_client } allow(InfluxDB2::Client).to receive(:new).with(url, token, **influx_client_args) { influx_client }
allow(QA::Tools::TestResourceDataProcessor).to receive(:resources) { fabrication_resources } allow(QA::Tools::TestResourceDataProcessor).to receive(:resources) { fabrication_resources }
allow_any_instance_of(RSpec::Core::Example::ExecutionResult).to receive(:run_time).and_return(0) # rubocop:disable RSpec/AnyInstanceOf
end end
context "without influxdb variables configured" do context "without influxdb variables configured" do
......
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