Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
eos
QuarkDB
Commits
8ea12e77
Commit
8ea12e77
authored
Jul 31, 2018
by
Georgios Bitzes
Browse files
Add MULTI / EXEC QClient test
parent
45323f38
Pipeline
#464421
failed with stages
in 65 minutes and 30 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
qclient
@
105b74bc
Compare
c84a20b5
...
105b74bc
Subproject commit
c84a20b542cbaa806bae341032570ea89aad0729
Subproject commit
105b74bc9648b45cec9dfa585589f0f6839a7eea
test/e2e.cc
View file @
8ea12e77
...
...
@@ -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
\n
2) 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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment