From a9f92d6b5e10014d925504aa0f53c01514248d7f Mon Sep 17 00:00:00 2001 From: Peter Banda Date: Wed, 13 Nov 2024 16:08:39 +0100 Subject: [PATCH] Anthropic test - fix --- .../service/impl/AnthropicServiceSpec.scala | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/anthropic-client/src/test/scala/io/cequence/openaiscala/anthropic/service/impl/AnthropicServiceSpec.scala b/anthropic-client/src/test/scala/io/cequence/openaiscala/anthropic/service/impl/AnthropicServiceSpec.scala index 0df93c87..ed6427af 100644 --- a/anthropic-client/src/test/scala/io/cequence/openaiscala/anthropic/service/impl/AnthropicServiceSpec.scala +++ b/anthropic-client/src/test/scala/io/cequence/openaiscala/anthropic/service/impl/AnthropicServiceSpec.scala @@ -53,28 +53,28 @@ class AnthropicServiceSpec extends AsyncWordSpec with GivenWhenThen { "should throw AnthropicScalaServerErrorException when 500" ignore { recoverToSucceededIf[AnthropicScalaServerErrorException] { - TestFactory.mockedService500().createMessage(irrelevantMessages, None, settings) + TestFactory.mockedService500().createMessage(Some(role), irrelevantMessages, settings) } } "should throw AnthropicScalaEngineOverloadedException when 529" ignore { recoverToSucceededIf[AnthropicScalaEngineOverloadedException] { - TestFactory.mockedService529().createMessage(irrelevantMessages, None, settings) + TestFactory.mockedService529().createMessage(Some(role), irrelevantMessages, settings) } } "should throw AnthropicScalaClientException when 400" ignore { recoverToSucceededIf[AnthropicScalaClientException] { - TestFactory.mockedService400().createMessage(irrelevantMessages, None, settings) + TestFactory.mockedService400().createMessage(Some(role), irrelevantMessages, settings) } } "should throw AnthropicScalaClientException when unknown error code" ignore { recoverToSucceededIf[AnthropicScalaClientException] { - TestFactory.mockedServiceOther().createMessage(irrelevantMessages, None, settings) + TestFactory + .mockedServiceOther() + .createMessage(Some(role), irrelevantMessages, settings) } } - } - }