Commit 3f866ad3 authored by Mark Lapierre's avatar Mark Lapierre

Merge branch 'acunskis-flaky-test-fix' into 'master'

Mock runtime value for test_stats_formatter spec

See merge request gitlab-org/gitlab!84034
parents 2d4cbcaf a71f7ece
......@@ -93,6 +93,7 @@ describe QA::Support::Formatters::TestStatsFormatter do
before do
allow(InfluxDB2::Client).to receive(:new).with(url, token, **influx_client_args) { influx_client }
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
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