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
0ff2cd10
Commit
0ff2cd10
authored
Mar 20, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
cdd8f2a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+7
-6
No files found.
wcfs/wcfs_test.py
View file @
0ff2cd10
...
...
@@ -406,12 +406,12 @@ class tWatch:
reply
=
bool
(
stream
%
2
)
if
reply
:
with
t
.
_mu
:
with
t
.
_
rx
mu
:
assert
stream
in
t
.
_rxtab
rxq
=
t
.
_rxtabs
[
stream
]
rxq
.
send
(
msg
)
else
:
with
t
.
_mu
:
with
t
.
_
rx
mu
:
assert
stream
not
in
t
.
_accepted
t
.
_accepted
.
add
(
stream
)
t
.
_acceptq
.
send
((
stream
,
msg
))
...
...
@@ -431,7 +431,7 @@ class tWatch:
stream
=
1
rxq
=
chan
()
with
t
.
_mu
:
with
t
.
_
rx
mu
:
assert
stream
not
in
t
.
_rxtab
t
.
_rxtab
[
stream
]
=
rxq
...
...
@@ -587,14 +587,15 @@ def test_wcfs():
@
func
def
_
():
defer
(
done
.
close
)
pinv
=
w
.
expectPin
([(
zf
,
blk
,
at
),
(
zf
,
blk
,
at
)])
pinv
=
w
.
expectPin
([(
zf
,
2
,
at1
),
(
zf
,
3
,
at1
)])
for
p
in
pinv
:
p
.
ack
()
go
(
_
)
assert
w
.
sen
tReq
(
"watch %s @%s"
,
zf
,
at1
)
==
"ok"
assert
w
.
sen
dReq
(
b"watch %s @%s"
%
(
h
(
zf
.
_p_oid
),
h
(
at1
))
)
==
"ok"
done
.
recv
()
tdb
.
watch
(
zf
,
at1
)
# XXX <- pin @at2 @at3
w
=
t
.
watch
(
zf
,
at1
)
# XXX <- pin @at2 @at3
#t.watch(zf, at1, {2: at1, 3: at1}) # XXX <- pin @at2 @at3
...
...
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