mirror of
https://github.com/fluencelabs/redis
synced 2025-04-26 02:52:15 +00:00
Test: fix attach_to_replication_stream to handle newlines.
This commit is contained in:
parent
77df3b06b2
commit
032aeb87dd
@ -464,8 +464,11 @@ proc attach_to_replication_stream {} {
|
|||||||
flush $s
|
flush $s
|
||||||
|
|
||||||
# Get the count
|
# Get the count
|
||||||
|
while 1 {
|
||||||
set count [gets $s]
|
set count [gets $s]
|
||||||
set prefix [string range $count 0 0]
|
set prefix [string range $count 0 0]
|
||||||
|
if {$prefix ne {}} break; # Newlines are allowed as PINGs.
|
||||||
|
}
|
||||||
if {$prefix ne {$}} {
|
if {$prefix ne {$}} {
|
||||||
error "attach_to_replication_stream error. Received '$count' as count."
|
error "attach_to_replication_stream error. Received '$count' as count."
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user