Skip to content

Commit

Permalink
failing test that shows missing test session and test module events
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed May 7, 2024
1 parent 6644fa5 commit 320d595
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/datadog/ci/contrib/knapsack_rspec/instrumentation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ def devnull
end

# test session and module traced
# expect(test_session_span).not_to be_nil
# expect(test_module_span).not_to be_nil
expect(test_session_span).not_to be_nil
expect(test_module_span).not_to be_nil

# test session and module are failed
# expect([test_session_span, test_module_span]).to all have_fail_status
expect([test_session_span, test_module_span]).to all have_fail_status

# single test suite span
expect(test_suite_spans).to have(1).item
Expand All @@ -70,7 +70,7 @@ def devnull
)

# every test span is connected to test module and test session
# expect(test_spans).to all have_test_tag(:test_module_id)
# expect(test_spans).to all have_test_tag(:test_session_id)
expect(test_spans).to all have_test_tag(:test_module_id)
expect(test_spans).to all have_test_tag(:test_session_id)
end
end

0 comments on commit 320d595

Please sign in to comment.