Skip to content

Commit

Permalink
Add IT with ping for java cluster client. (#893)
Browse files Browse the repository at this point in the history
Add IT with ping for cluster client.

Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand authored Feb 5, 2024
1 parent d7c0ee2 commit 3a3c436
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions java/integTest/src/test/java/glide/cluster/CommandTests.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** Copyright GLIDE-for-Redis Project Contributors - SPDX Identifier: Apache-2.0 */
package glide.cluster;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;

import glide.TestConfiguration;
Expand Down Expand Up @@ -43,4 +44,11 @@ public void custom_command_info() {
assertTrue(((String) info).contains("# Stats"));
}
}

@Test
@SneakyThrows
public void custom_command_ping() {
var data = clusterClient.customCommand(new String[] {"ping"}).get(10, TimeUnit.SECONDS);
assertEquals("PONG", data.getSingleValue());
}
}

0 comments on commit 3a3c436

Please sign in to comment.