From 97e58ccfc4716a6e397e8cc3c18f708a0c4f8078 Mon Sep 17 00:00:00 2001 From: Thomas Vitale Date: Fri, 20 Dec 2024 19:22:21 +0100 Subject: [PATCH] Fix Qdrant failing test Signed-off-by: Thomas Vitale --- .../ai/vectorstore/qdrant/QdrantVectorStoreBuilderTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vector-stores/spring-ai-qdrant-store/src/test/java/org/springframework/ai/vectorstore/qdrant/QdrantVectorStoreBuilderTests.java b/vector-stores/spring-ai-qdrant-store/src/test/java/org/springframework/ai/vectorstore/qdrant/QdrantVectorStoreBuilderTests.java index bbdfa73fa..c2c0818b2 100644 --- a/vector-stores/spring-ai-qdrant-store/src/test/java/org/springframework/ai/vectorstore/qdrant/QdrantVectorStoreBuilderTests.java +++ b/vector-stores/spring-ai-qdrant-store/src/test/java/org/springframework/ai/vectorstore/qdrant/QdrantVectorStoreBuilderTests.java @@ -70,14 +70,14 @@ class QdrantVectorStoreBuilderTests { @Test void nullQdrantClientInConstructorShouldThrowException() { assertThatThrownBy(() -> QdrantVectorStore.builder(null, null)).isInstanceOf(IllegalArgumentException.class) - .hasMessage("QdrantClient must not be null"); + .hasMessage("EmbeddingModel must be configured"); } @Test void nullEmbeddingModelShouldThrowException() { assertThatThrownBy(() -> QdrantVectorStore.builder(qdrantClient, null).build()) .isInstanceOf(IllegalArgumentException.class) - .hasMessage("EmbeddingModel must not be null"); + .hasMessage("EmbeddingModel must be configured"); } @Test