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
f39029a0
Commit
f39029a0
authored
May 09, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
559dc9bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
23 deletions
+1
-23
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+1
-23
No files found.
wcfs/wcfs_test.py
View file @
f39029a0
...
...
@@ -689,27 +689,8 @@ def test_wcfs():
# XXX invalidation protocol ...
print
(
'
\
n
\
n
inv. protocol
\
n
\
n
'
)
"""
w = t.openwatch()
ctx = context.background() # XXX stub
wg = sync.WorkGroup(ctx)
def _(ctx):
pinv = w.expectPin(ctx, zf, {2: at1, 3: at0})
for p in pinv:
p.reply(b"ack")
wg.go(_)
def _(ctx):
assert w.sendReq(ctx, b"watch %s @%s" % (h(zf._p_oid), h(at1))) == "ok"
wg.go(_)
wg.wait()
print('
\
n
CCC
\
n
')
"""
bg
=
context
.
background
()
# checkSetupWatch verifies setting up new watch for zf@at.
def
checkSetupWatch
(
zf
,
at
):
print
(
'
\
n
C: check setup watch f<%s> %s'
%
(
h
(
zf
.
_p_oid
),
t
.
hat
(
at
)))
...
...
@@ -758,14 +739,11 @@ def test_wcfs():
for
dF
in
t
.
dFtail
:
checkSetupWatch
(
zf
,
dF
.
rev
)
print
()
return
# XXX test watch with all at variants
# XXX both from scratch and going e.g. at1 -> at2 -> at3
# XXX going not only up, but also down at1 <- at2 <- at3 ?
w
=
t
.
watch
(
zf
,
at1
)
# XXX <- pin @at2 @at3
#t.watch(zf, at1, {2: at1, 3: at1}) # XXX <- pin @at2 @at3
# XXX 2 (or more) opened watch for 1 file at the same time
# XXX watch for 2 files via single watch open
...
...
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