mirror of
https://github.com/fluencelabs/redis
synced 2025-04-25 18:42:13 +00:00
Test: use higher level redis.tcl proc to read replies.
This commit is contained in:
parent
5260ce1260
commit
1c343ec29f
@ -290,9 +290,9 @@ start_server {tags {"basic"}} {
|
|||||||
puts -nonewline $fd "SET k1 xyzk\r\nGET k1\r\nPING\r\n"
|
puts -nonewline $fd "SET k1 xyzk\r\nGET k1\r\nPING\r\n"
|
||||||
flush $fd
|
flush $fd
|
||||||
set res {}
|
set res {}
|
||||||
append res [string match OK* [::redis::redis_read_reply $fd]]
|
append res [string match OK* [r read]]
|
||||||
append res [::redis::redis_read_reply $fd]
|
append res [r read]
|
||||||
append res [string match PONG* [::redis::redis_read_reply $fd]]
|
append res [string match PONG* [r read]]
|
||||||
format $res
|
format $res
|
||||||
} {1xyzk1}
|
} {1xyzk1}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user