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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
7221cb5a
Commit
7221cb5a
authored
Jun 12, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
21e6e206
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+8
-0
No files found.
wcfs/wcfs_test.py
View file @
7221cb5a
...
@@ -914,6 +914,7 @@ def watch(twlink, zf, at, pinok=None): # XXX -> ?
...
@@ -914,6 +914,7 @@ def watch(twlink, zf, at, pinok=None): # XXX -> ?
if
at_prev
is
not
None
:
if
at_prev
is
not
None
:
assert
at_prev
<=
at
,
'TODO %s -> %s'
%
(
t
.
hat
(
at_prev
),
t
.
hat
(
at
))
assert
at_prev
<=
at
,
'TODO %s -> %s'
%
(
t
.
hat
(
at_prev
),
t
.
hat
(
at
))
pin_prev
=
twlink
.
_pinAt
(
zf
,
at_prev
)
pin_prev
=
twlink
.
_pinAt
(
zf
,
at_prev
)
assert
w
.
pinned
==
pin_prev
pin
=
twlink
.
_pinAt
(
zf
,
at
)
pin
=
twlink
.
_pinAt
(
zf
,
at
)
...
@@ -953,6 +954,7 @@ def watch(twlink, zf, at, pinok=None): # XXX -> ?
...
@@ -953,6 +954,7 @@ def watch(twlink, zf, at, pinok=None): # XXX -> ?
twlink
.
_watch
(
zf
,
at
,
pinok
,
"ok"
)
twlink
.
_watch
(
zf
,
at
,
pinok
,
"ok"
)
w
.
at
=
at
w
.
at
=
at
assert
w
.
pinned
==
twlink
.
_pinAt
(
zf
,
at
)
# _watch sends watch request for zf@at, expects initial pins specified by pinok and final reply.
# _watch sends watch request for zf@at, expects initial pins specified by pinok and final reply.
#
#
...
@@ -1218,6 +1220,12 @@ def test_wcfs():
...
@@ -1218,6 +1220,12 @@ def test_wcfs():
# watched + commit -> read -> receive pin messages; read is stuck until pins are acknowledged
# watched + commit -> read -> receive pin messages; read is stuck until pins are acknowledged
wl3
=
t
.
openwatch
();
wl3
.
watch
(
zf
,
at3
);
assert
at3
==
t
.
head
wl3
=
t
.
openwatch
();
wl3
.
watch
(
zf
,
at3
);
assert
at3
==
t
.
head
assert
set
(
wl3
.
_watching
.
keys
())
==
{
zf
}
w3
=
wl3
.
_watching
[
zf
]
assert
w3
.
foid
==
zf
.
_p_oid
assert
w3
.
at
==
at3
assert
w3
.
pinned
==
{}
wl3_
=
t
.
openwatch
();
wl3_
.
watch
(
zf
,
at3
)
wl3_
=
t
.
openwatch
();
wl3_
.
watch
(
zf
,
at3
)
wl2
=
t
.
openwatch
();
wl2
.
watch
(
zf
,
at2
)
wl2
=
t
.
openwatch
();
wl2
.
watch
(
zf
,
at2
)
f
.
assertCache
([
1
,
1
,
1
,
1
])
f
.
assertCache
([
1
,
1
,
1
,
1
])
...
...
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