Skip to content

Commit 61bd0a7

Browse files
committed
Update test. New validation catches bad commands before dispatch
Signed-off-by: Paulo Lopes <[email protected]>
1 parent 223b351 commit 61bd0a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/io/vertx/redis/client/test/RedisTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,10 +314,10 @@ public void testBatch2(TestContext should) {
314314
RedisClient redis = (RedisClient) Redis.createClient(rule.vertx(), new RedisOptions().addConnectionString("redis://localhost:7006"));
315315

316316
List<Request> requests = Arrays.asList(
317-
Request.cmd(Command.SET).arg("foo"),
318-
Request.cmd(Command.SET).arg("foo"),
319-
Request.cmd(Command.SET).arg("foo"),
320-
Request.cmd(Command.SET).arg("foo"));
317+
Request.cmd(Command.create("OOPS")),
318+
Request.cmd(Command.create("OOPS")),
319+
Request.cmd(Command.create("OOPS")),
320+
Request.cmd(Command.create("OOPS")));
321321

322322
redis.batch(requests)
323323
.onFailure(err -> {

0 commit comments

Comments
 (0)