Skip to content

Commit

Permalink
Remove tests that look for a txn in error collector
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahramadan committed Feb 13, 2024
1 parent 36d6cab commit 4e26f74
Showing 1 changed file with 0 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,6 @@ def test_set_llm_agent_attribute_on_chat_transaction
assert_truthy harvest_transaction_events![1][0][2][:llm]
end

def test_set_llm_agent_attribute_on_chat_error_transaction
in_transaction do |txn|
stub_post_request do
client.chat(parameters: chat_params)
NewRelic::Agent.notice_error(StandardError.new)
end
end

assert_truthy harvest_error_events![1][0][2][:llm]
end

def test_conversation_id_added_to_summary_events
conversation_id = '12345'
in_transaction do
Expand Down Expand Up @@ -241,26 +230,4 @@ def test_set_llm_agent_attribute_on_embedding_transaction

assert_truthy harvest_transaction_events![1][0][2][:llm]
end

def test_set_llm_agent_attribute_on_embedding_error_transaction
in_transaction do |txn|
stub_post_request do
client.embeddings(parameters: embeddings_params)
NewRelic::Agent.notice_error(StandardError.new)
end
end

assert_truthy harvest_error_events![1][0][2][:llm]
end

def test_missing_parameters
in_transaction do |txn|
stub_error_post_request do
client.embeddings(parameters: missing_embeddings_param)
NewRelic::Agent.notice_error(StandardError.new)
end
end

assert_truthy harvest_error_events![1][0][2][:llm]
end
end

0 comments on commit 4e26f74

Please sign in to comment.