From aad874b7c82ea2ff8796dee0eae1e120f92ada53 Mon Sep 17 00:00:00 2001 From: Kazik Pogoda Date: Thu, 17 Oct 2024 13:36:55 +0200 Subject: [PATCH] integration test stability fix --- src/commonTest/kotlin/AnthropicTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commonTest/kotlin/AnthropicTest.kt b/src/commonTest/kotlin/AnthropicTest.kt index 85c3935..b152c9f 100644 --- a/src/commonTest/kotlin/AnthropicTest.kt +++ b/src/commonTest/kotlin/AnthropicTest.kt @@ -213,7 +213,8 @@ class AnthropicTest { } finalResponse.content[0] shouldBe instanceOf() - (finalResponse.content[0] as Text).text shouldContain "6,378,911.8" + // the result might be in the format: 6,378,911.8.... + (finalResponse.content[0] as Text).text.replace(",", "") shouldContain "6378911.8" } @Test