File tree Expand file tree Collapse file tree
src/test/java/io/qdrant/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99import io .grpc .ManagedChannel ;
1010import io .grpc .Status ;
1111import io .grpc .StatusRuntimeException ;
12+ import io .qdrant .client .grpc .Collections .ListCollectionsRequest ;
1213import io .qdrant .client .grpc .QdrantOuterClass .HealthCheckReply ;
1314import io .qdrant .client .grpc .QdrantOuterClass .HealthCheckRequest ;
1415import java .util .concurrent .ExecutionException ;
@@ -61,7 +62,8 @@ public void client_without_api_key_cannot_connect() {
6162 ExecutionException executionException =
6263 assertThrows (
6364 ExecutionException .class ,
64- () -> grpcClient .qdrant ().healthCheck (HealthCheckRequest .getDefaultInstance ()).get ());
65+ () ->
66+ grpcClient .collections ().list (ListCollectionsRequest .getDefaultInstance ()).get ());
6567 Throwable cause = executionException .getCause ();
6668 assertEquals (StatusRuntimeException .class , cause .getClass ());
6769 StatusRuntimeException statusRuntimeException = (StatusRuntimeException ) cause ;
You can’t perform that action at this time.
0 commit comments