mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
Test: fix attach_to_replication_stream to handle newlines.
This commit is contained in:
parent
f29e384853
commit
363c0f67b9
@ -470,8 +470,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."
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user