Skip to content

Commit

Permalink
Remove the unused test
Browse files Browse the repository at this point in the history
  • Loading branch information
zymap committed May 23, 2024
1 parent 1d4801f commit 1eeacc1
Showing 1 changed file with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,32 +230,6 @@ void test() throws Exception {
.isEqualTo(24);
}

@Test
public void getFloorValue() throws Exception {

@Cleanup
SyncOxiaClient client = OxiaClientBuilder.create(oxia.getServiceAddress()).syncClient();

GetResult gr = client.get("a", Set.of(GetOption.ComparisonFloor));
assertThat(gr).isNull();

PutResult pr = client.put("a", "0".getBytes(), Set.of(PartitionKey("a"), PutOption.SequenceKeysDeltas(List.of(1L))));
System.out.println(pr.key());
gr = client.get("a", Set.of(GetOption.PartitionKey("a"), GetOption.ComparisonFloor));

pr = client.put("a", "0".getBytes(), Set.of(PartitionKey("a"), PutOption.SequenceKeysDeltas(List.of(1L))));
System.out.println(pr.key());


gr = client.get(pr.key(), Set.of(GetOption.PartitionKey("a"), GetOption.ComparisonFloor));
System.out.println(gr.getKey());

gr = client.get("a-00000000000000000000", Set.of(GetOption.PartitionKey("a"), GetOption.ComparisonFloor));
System.out.println("final key");
System.out.println(gr.getKey());

}

@Test
public void testGetFloorCeilingWithPartitionKey() throws Exception {
@Cleanup
Expand Down

0 comments on commit 1eeacc1

Please sign in to comment.