Skip to content

Commit a9f92d6

Browse files
committed
Anthropic test - fix
1 parent 11f34d8 commit a9f92d6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

anthropic-client/src/test/scala/io/cequence/openaiscala/anthropic/service/impl/AnthropicServiceSpec.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,28 +53,28 @@ class AnthropicServiceSpec extends AsyncWordSpec with GivenWhenThen {
5353

5454
"should throw AnthropicScalaServerErrorException when 500" ignore {
5555
recoverToSucceededIf[AnthropicScalaServerErrorException] {
56-
TestFactory.mockedService500().createMessage(irrelevantMessages, None, settings)
56+
TestFactory.mockedService500().createMessage(Some(role), irrelevantMessages, settings)
5757
}
5858
}
5959

6060
"should throw AnthropicScalaEngineOverloadedException when 529" ignore {
6161
recoverToSucceededIf[AnthropicScalaEngineOverloadedException] {
62-
TestFactory.mockedService529().createMessage(irrelevantMessages, None, settings)
62+
TestFactory.mockedService529().createMessage(Some(role), irrelevantMessages, settings)
6363
}
6464
}
6565

6666
"should throw AnthropicScalaClientException when 400" ignore {
6767
recoverToSucceededIf[AnthropicScalaClientException] {
68-
TestFactory.mockedService400().createMessage(irrelevantMessages, None, settings)
68+
TestFactory.mockedService400().createMessage(Some(role), irrelevantMessages, settings)
6969
}
7070
}
7171

7272
"should throw AnthropicScalaClientException when unknown error code" ignore {
7373
recoverToSucceededIf[AnthropicScalaClientException] {
74-
TestFactory.mockedServiceOther().createMessage(irrelevantMessages, None, settings)
74+
TestFactory
75+
.mockedServiceOther()
76+
.createMessage(Some(role), irrelevantMessages, settings)
7577
}
7678
}
77-
7879
}
79-
8080
}

0 commit comments

Comments
 (0)