Skip to content

Commit

Permalink
Minor test update.
Browse files Browse the repository at this point in the history
  • Loading branch information
SanHalacogluImproving authored and acarbonetto committed Apr 1, 2024
1 parent 7b963ff commit d70ba09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/client/src/test/java/glide/api/RedisClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1718,8 +1718,8 @@ public void zpopmax_returns_success() {
String[] arguments = new String[] {key};
Map<String, Double> value = Map.of("member1", 2.5);

CompletableFuture<Map<String, Double>> testResponse = mock(CompletableFuture.class);
when(testResponse.get()).thenReturn(value);
CompletableFuture<Map<String, Double>> testResponse = new CompletableFuture<>();
testResponse.complete(value);

// match on protobuf request
when(commandManager.<Map<String, Double>>submitNewCommand(eq(ZPopMax), eq(arguments), any()))
Expand Down

0 comments on commit d70ba09

Please sign in to comment.