Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
generall committed Jun 20, 2024
1 parent 3d7c722 commit 961595d
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/test/java/io/qdrant/client/PointsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,22 @@ public void searchGroups() throws ExecutionException, InterruptedException {
public void scroll() throws ExecutionException, InterruptedException {
createAndSeedCollection(testName);

Collections.PayloadIndexParams params = Collections.PayloadIndexParams.newBuilder()
.setIntegerIndexParams(
Collections.IntegerIndexParams.newBuilder().setLookup(false).setRange(true).build())
.build();

UpdateResult resultIndex = client.createPayloadIndexAsync(
testName,
"bar",
PayloadSchemaType.Integer,
params,
true,
null,
null).get();

assertEquals(UpdateStatus.Completed, resultIndex.getStatus());

ScrollResponse scrollResponse = client.scrollAsync(ScrollPoints.newBuilder()
.setCollectionName(testName)
.setLimit(1)
Expand Down Expand Up @@ -617,22 +633,6 @@ private void createAndSeedCollection(String collectionName) throws ExecutionExce

client.createCollectionAsync(request).get();

Collections.PayloadIndexParams params = Collections.PayloadIndexParams.newBuilder()
.setIntegerIndexParams(
Collections.IntegerIndexParams.newBuilder().setLookup(false).setRange(true).build())
.build();

UpdateResult resultIndex = client.createPayloadIndexAsync(
testName,
"bar",
PayloadSchemaType.Integer,
params,
true,
null,
null).get();

assertEquals(UpdateStatus.Completed, resultIndex.getStatus());

UpdateResult result = client.upsertAsync(collectionName, ImmutableList.of(
PointStruct.newBuilder()
.setId(id(8))
Expand Down

0 comments on commit 961595d

Please sign in to comment.