Commit 032aeb87 authored by antirez's avatar antirez
Browse files

Test: fix attach_to_replication_stream to handle newlines.

parent 77df3b06
......@@ -464,8 +464,11 @@ proc attach_to_replication_stream {} {
flush $s
# Get the count
set count [gets $s]
set prefix [string range $count 0 0]
while 1 {
set count [gets $s]
set prefix [string range $count 0 0]
if {$prefix ne {}} break; # Newlines are allowed as PINGs.
}
if {$prefix ne {$}} {
error "attach_to_replication_stream error. Received '$count' as count."
}
......
Markdown is supported
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