Commit 447c4e4d authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 5d0a19af
...@@ -621,7 +621,7 @@ func parseWatchFrame(line string) (stream uint64, msg string, err error) { ...@@ -621,7 +621,7 @@ func parseWatchFrame(line string) (stream uint64, msg string, err error) {
stream, err = strconv.ParseUint(line[:sp], 10, 64) stream, err = strconv.ParseUint(line[:sp], 10, 64)
if err != nil { if err != nil {
return 0, "", fmt.Errorf("invalid stream") return 0, "", fmt.Errorf("invalid frame: %q (invalid stream)", line)
} }
msg = strings.TrimSuffix(line[sp+1:], "\n") msg = strings.TrimSuffix(line[sp+1:], "\n")
......
...@@ -478,7 +478,7 @@ class tWatchLink: ...@@ -478,7 +478,7 @@ class tWatchLink:
t._wtx = os.fdopen(wh2, 'wb') t._wtx = os.fdopen(wh2, 'wb')
t.rx_eof = chan() # .rx_eof becomes ready when wcfs closes its tx side t.rx_eof = chan() # .rx_eof becomes ready when wcfs closes its tx side
t.fatalv = [] # fatal messages go here t.fatalv = [] # fatal messages received from wcfs
# inv.protocol message IO # inv.protocol message IO
t._acceptq = chan() # (stream, msg) server originated messages go here t._acceptq = chan() # (stream, msg) server originated messages go here
...@@ -905,7 +905,7 @@ def test_wcfs(): ...@@ -905,7 +905,7 @@ def test_wcfs():
) )
if _ == 0: if _ == 0:
raise RuntimeError("%s: did not rx EOF after bad frame " % wl) raise RuntimeError("%s: did not rx EOF after bad frame " % wl)
assert wl.fatalv == [] # XXX assert wl.fatalv == [b'error: invalid frame: "zzz hello\\n" (invalid stream)']
wl.close() wl.close()
return return
......
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