Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
447c4e4d
Commit
447c4e4d
authored
Jun 06, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5d0a19af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
wcfs/misc.go
wcfs/misc.go
+1
-1
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+2
-2
No files found.
wcfs/misc.go
View file @
447c4e4d
...
...
@@ -621,7 +621,7 @@ func parseWatchFrame(line string) (stream uint64, msg string, err error) {
stream
,
err
=
strconv
.
ParseUint
(
line
[
:
sp
],
10
,
64
)
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
"
)
...
...
wcfs/wcfs_test.py
View file @
447c4e4d
...
...
@@ -478,7 +478,7 @@ class tWatchLink:
t
.
_wtx
=
os
.
fdopen
(
wh2
,
'wb'
)
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
t
.
_acceptq
=
chan
()
# (stream, msg) server originated messages go here
...
...
@@ -905,7 +905,7 @@ def test_wcfs():
)
if
_
==
0
:
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
()
return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment