Skip to content

Commit

Permalink
Rebase + Spotless.
Browse files Browse the repository at this point in the history
  • Loading branch information
SanHalacogluImproving committed Apr 11, 2024
1 parent c5a0d2c commit e12b606
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions java/client/src/main/java/glide/api/BaseClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -730,9 +730,9 @@ public CompletableFuture<Double[]> zmscore(@NonNull String key, @NonNull String[
@Override
public CompletableFuture<Long> zremrangebyrank(@NonNull String key, long start, long end) {
return commandManager.submitNewCommand(
ZRemRangeByRank,
new String[] {key, Long.toString(start), Long.toString(end)},
this::handleLongResponse);
ZRemRangeByRank,
new String[] {key, Long.toString(start), Long.toString(end)},
this::handleLongResponse);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion java/client/src/test/java/glide/api/RedisClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2313,7 +2313,7 @@ public void zremrangebyrank_returns_success() {

// match on protobuf request
when(commandManager.<Long>submitNewCommand(eq(ZRemRangeByRank), eq(arguments), any()))
.thenReturn(testResponse);
.thenReturn(testResponse);

// exercise
CompletableFuture<Long> response = service.zremrangebyrank(key, start, end);
Expand Down
2 changes: 1 addition & 1 deletion java/integTest/src/test/java/glide/SharedCommandTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@ public void zremrangebyrank(BaseClient client) {
// Key exists, but it is not a set
assertEquals(OK, client.set(key2, "value").get());
ExecutionException executionException =
assertThrows(ExecutionException.class, () -> client.zremrangebyrank(key2, 2, 1).get());
assertThrows(ExecutionException.class, () -> client.zremrangebyrank(key2, 2, 1).get());
assertTrue(executionException.getCause() instanceof RequestException);
}

Expand Down

0 comments on commit e12b606

Please sign in to comment.