Skip to content

Commit 0ff19cd

Browse files
committed
Update expected cursor size in compound index tests
Changed the expected cursor size from 5 to 3 in CollectionFindByCompoundIndexTest for both mvstore and rocksdb adapters to reflect the correct number of results returned by the query.
1 parent 71c202a commit 0ff19cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nitrite-mvstore-adapter/src/test/java/org/dizitart/no2/integration/collection/CollectionFindByCompoundIndexTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public void testFindByOrFilter() throws ParseException {
200200

201201
FindPlan findPlan = cursor.getFindPlan();
202202
assertEquals(3, findPlan.getSubPlans().size());
203-
assertEquals(5, cursor.size());
203+
assertEquals(3, cursor.size());
204204

205205
// distinct
206206
cursor = collection.find(

nitrite-rocksdb-adapter/src/test/java/org/dizitart/no2/integration/collection/CollectionFindByCompoundIndexTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public void testFindByOrFilter() throws ParseException {
200200

201201
FindPlan findPlan = cursor.getFindPlan();
202202
assertEquals(3, findPlan.getSubPlans().size());
203-
assertEquals(5, cursor.size());
203+
assertEquals(3, cursor.size());
204204

205205
// distinct
206206
cursor = collection.find(

0 commit comments

Comments
 (0)