Commit 64cd8ba0 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4a0dd8a0
......@@ -1164,7 +1164,7 @@ def test_wcfs():
# f @at1
f1.assertCache([1,1,1])
f1.assertData (['','','c1']) # XXX mtime=at1?
f1.assertData (['','','c1']) # XXX mtime=at1?
# >>> f close / open again -> cache must not be lost
......@@ -1172,7 +1172,8 @@ def test_wcfs():
f.assertCache([1,1,1,1])
f.close()
f = t.open(zf)
assert f.cached() != [0,0,0,0]
if f.cached() != [1,1,1,1]:
assert sum(f.cached()) > 4*1/2 # > 50%
# >>> XXX commit data to not yet accessed f part - nothing happens
......@@ -1226,8 +1227,8 @@ def test_wcfs():
" head/at (@%s); …" % (h(zf._p_oid), h(atpast), h(t.head)))
wl.close()
# some watch requests with explicit pinok (also partly verifies how
# tWatchLink.watch computes automatic pinok)
# some watch setup/update requests with explicit pinok (also partly
# verifies how tWatchLink.watch computes automatic pinok)
wl = t.openwatch()
# XXX check @at0 ?
wl.watch(zf, at1, {2: at1, 3: at0}) # -> at1 (new watch) XXX at0 -> ø (blk3 was hole)?
......@@ -1235,7 +1236,7 @@ def test_wcfs():
wl.watch(zf, at3, {2: None}) # at2 -> at3 (current head)
wl.close()
# all valid watch requests going at_i -> at_j -> ... with automatic pinok
# 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():
print('\n--------')
......@@ -1248,7 +1249,6 @@ def test_wcfs():
wl.close()
# """
# XXX move before setup watch?
print('\n\n\n\nWATCH+COMMIT\n\n')
# watched + commit -> read -> receive pin messages; read is stuck until pins are acknowledged
......
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