Commit 8ea12e77 authored by Georgios Bitzes's avatar Georgios Bitzes
Browse files

Add MULTI / EXEC QClient test

parent 45323f38
Pipeline #464421 failed with stages
in 65 minutes and 30 seconds
Subproject commit c84a20b542cbaa806bae341032570ea89aad0729
Subproject commit 105b74bc9648b45cec9dfa585589f0f6839a7eea
......@@ -648,6 +648,20 @@ TEST_F(Raft_e2e, test_many_redis_commands) {
redisReplyPtr conv2 = tunnel(follower1)->exec("convert-string-to-int", unsignedIntToBinaryString(999u)).get();
ASSERT_EQ(qclient::describeRedisReply(conv2), "1) Interpreted as int64_t: 999\n2) Interpreted as uint64_t: 999\n");
std::deque<qclient::EncodedRequest> multi1;
multi1.emplace_back(qclient::EncodedRequest::make("set", "my-awesome-counter", "1"));
multi1.emplace_back(qclient::EncodedRequest::make("set", "other-counter", "12345"));
multi1.emplace_back(qclient::EncodedRequest::make("get", "other-counter"));
multi1.emplace_back(qclient::EncodedRequest::make("get", "my-awesome-counter"));
ASSERT_EQ(
qclient::describeRedisReply(tunnel(leaderID)->execute(std::move(multi1)).get()),
"1) OK\n"
"2) OK\n"
"3) \"12345\"\n"
"4) \"1\"\n"
);
}
TEST_F(Raft_e2e, replication_with_trimmed_journal) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment