Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
7496458c
Commit
7496458c
authored
Oct 18, 2010
by
Pieter Noordhuis
Browse files
The QUIT commands returns OK on master
parent
8b8b7afe
Changes
1
Show whitespace changes
Inline
Side-by-side
test.c
View file @
7496458c
...
@@ -35,8 +35,11 @@ int main(void) {
...
@@ -35,8 +35,11 @@ int main(void) {
__connect
(
&
c
);
__connect
(
&
c
);
test
(
"Returns I/O error when the connection is lost: "
);
test
(
"Returns I/O error when the connection is lost: "
);
test_cond
(
redisCommand
(
c
,
"QUIT"
)
==
NULL
&&
reply
=
redisCommand
(
c
,
"QUIT"
);
strcmp
(
c
->
error
,
"Server closed the connection"
)
==
0
);
test_cond
(
redisCommand
(
c
,
"PING"
)
==
NULL
&&
strcasecmp
(
reply
->
reply
,
"OK"
)
==
0
&&
strcmp
(
c
->
error
,
"read: Server closed the connection"
)
==
0
);
freeReplyObject
(
reply
);
redisFree
(
c
);
redisFree
(
c
);
__connect
(
&
c
);
/* reconnect */
__connect
(
&
c
);
/* reconnect */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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