Commit b57e6ec0 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e9438567
......@@ -1358,6 +1358,19 @@ def test_wcfs_watch_setup():
# some watch setup/update requests with explicit pinok (also partly
# verifies how tWatchLink.watch computes automatic pinok)
# new watch setup ø -> at
def assertNewWatch(at, pinok):
wl = t.openwatch()
wl.watch(zf, at, pinok)
wl.close()
assertNewWatch(at1, {2:at1, 3:at0, 5:at0})
assertNewWatch(at2, {2:at2, 3:at2, 5:at2})
assertNewWatch(at3, {2:at3, 3:at2, 5:at3}) # XXX recheck 5
assertNewWatch(at4, { 3:at2 }) # XXX 5 not accessed - right?
assertNewWatch(at5, { })
# new watch + update at_i -> at_j
wl = t.openwatch()
# XXX check @at0 ?
wl.watch(zf, at1, {2:at1, 3:at0, 5:at0}) # -> at1 (new watch) XXX at0 -> ø?
......@@ -1368,8 +1381,6 @@ def test_wcfs_watch_setup():
wl.close()
return
# XXX direct ->at2 ->at3 ->at4 ->at5
# all valid watch setup/update requests going at_i -> at_j -> ... with automatic pinok
for zf in t.zfiles():
for revv in t.iter_revv():
......
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