Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

closing-connection-native-agent-test: lower amount of chunks we check for (#71354)

Oleksandr Solovyov08717ff883b4
diff --git a/test/metabase/metabot/api_test.clj b/test/metabase/metabot/api_test.clj
index fe0a006fe29..d88d8c21185 100644
--- a/test/metabase/metabot/api_test.clj
+++ b/test/metabase/metabot/api_test.clj
@@ -290,7 +290,7 @@
:timeout-ms 1000})
(is (some? @stored-parts) "store-parts! was called even though client disconnected")
(testing "LLM server stopped writing when connection was dropped"
- (is (< 20 @cnt) "Server should not have written all chunks"))
+ (is (< 10 @cnt) "Server should not have written all chunks"))
;; The stored parts should contain partial data — not all 30 chunks.
;; Text chunks are combined by combine-text-parts-xf, so we check
;; that the concatenated text is shorter than it would be if all