Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Sep 6, 2024
1 parent 0c66a0e commit a268767
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/datadog/ci/test_retries/component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@
context "when unique tests set is empty" do
let(:unique_tests_set) { Set.new }

it "disables retrying new tests and adds fault reason" do
it "disables retrying new tests and adds fault reason to the test session" do
subject

expect(component.retry_new_tests_enabled).to be false
expect(component.retry_new_tests_fault_reason).to eq("unique tests set is empty")
expect(test_session.get_tag("test.early_flake.abort_reason")).to eq("faulty")
end
end

Expand Down Expand Up @@ -224,7 +224,7 @@
end

let(:tracer_span) do
instance_double(Datadog::Tracing::SpanOperation, duration: 1.2)
instance_double(Datadog::Tracing::SpanOperation, duration: 1.2, set_tag: true)
end
let(:test_span) do
instance_double(
Expand Down Expand Up @@ -286,7 +286,7 @@
it { is_expected.to eq(11) }

context "when test duration increases" do
let(:tracer_span) { instance_double(Datadog::Tracing::SpanOperation) }
let(:tracer_span) { instance_double(Datadog::Tracing::SpanOperation, set_tag: true) }
before do
allow(tracer_span).to receive(:duration).and_return(5.1, 10.1, 30.1, 600.1)
end
Expand Down

0 comments on commit a268767

Please sign in to comment.