From 2d35c178f806bcb97396634948821308e650f455 Mon Sep 17 00:00:00 2001 From: Justin Vallelonga Date: Sun, 22 Dec 2024 14:53:31 +0700 Subject: [PATCH] fix test --- test/jobs/get_next_ai_message_job_openai_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/jobs/get_next_ai_message_job_openai_test.rb b/test/jobs/get_next_ai_message_job_openai_test.rb index 612470ba..9d9e8f27 100644 --- a/test/jobs/get_next_ai_message_job_openai_test.rb +++ b/test/jobs/get_next_ai_message_job_openai_test.rb @@ -103,7 +103,7 @@ class GetNextAIMessageJobOpenaiTest < ActiveJob::TestCase json_content_text = JSON.parse(content_text) assert_equal image_generation_prompt, json_content_text["prompt_given"], "First new message should have the result of calling the tool" assert first_new_message.tool_call_id.present? - assert first_new_message.content_tool_calls.blank? + assert first_new_message.content_tool_calls.present? assert_equal @image_generation_message.content_tool_calls.dig(0, :id), first_new_message.tool_call_id, "ID of tool execution should have matched decision to call the tool" assert first_new_message.finished?, "This message SHOULD HAVE been considered finished"