Skip to content

Commit

Permalink
fix test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Nov 26, 2024
1 parent 4d1619c commit 20357b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions spec/datadog/ci/contrib/minitest/instrumentation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -457,10 +457,7 @@ def test_pass_other

# test_session metric has auto_injected false
test_session_started_metric = telemetry_metric(:inc, "test_session")
expect(test_session_started_metric.tags).to eq(
"provider" => "unsupported",
"auto_injected" => "false"
)
expect(test_session_started_metric.tags["auto_injected"]).to eq("false")
end

it "creates a test module span" do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ def test_pass_other

# test_session metric has auto_injected tag
test_session_started_metric = telemetry_metric(:inc, "test_session")
expect(test_session_started_metric.tags).to eq(
"provider" => "unsupported",
"auto_injected" => "true"
)
expect(test_session_started_metric.tags["auto_injected"]).to eq("true")
end
end

0 comments on commit 20357b8

Please sign in to comment.