Skip to content

Commit

Permalink
Fix after review
Browse files Browse the repository at this point in the history
Closes #454
  • Loading branch information
nickkkccc committed Jan 22, 2024
1 parent a4bc5af commit a7c8b0a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,14 @@ public void withAfterTest() {
TarantoolResult<TarantoolTuple> resultAfterInsert = profileSpace.select(Conditions.any()).join();
assertEquals(tupleCount, resultAfterInsert.size());

final int halfOfTupleCount = tupleCount / 2;
TarantoolTuple afterTuple = tupleFactory.create(halfOfTupleCount,
final int median = tupleCount / 2;
TarantoolTuple medianTuple = tupleFactory.create(median,
null,
String.valueOf(halfOfTupleCount),
halfOfTupleCount);
String.valueOf(median),
median);

TarantoolResult<TarantoolTuple> resultAfterInsertWithAfterOption =
profileSpace.select(Conditions.after(afterTuple)).join();
assertEquals(halfOfTupleCount - 1, resultAfterInsertWithAfterOption.size());
profileSpace.select(Conditions.after(medianTuple)).join();
assertEquals(median - 1, resultAfterInsertWithAfterOption.size());
}
}

0 comments on commit a7c8b0a

Please sign in to comment.