Commit 8ea18d07 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 50de9920
......@@ -1384,9 +1384,19 @@ def test_wcfs_watch_setup():
wl.close()
# XXX
def _test_wcfs_test_watch_vs_commit():
print('\n\n\n\nWATCH+COMMIT\n\n')
# verify that already setup watch(es) receive correct pins on block access.
@func
def test_wcfs_watch_vs_commit(): # XXX commit -> access ?
t = tDB(); zf = t.zfile; at0=t.at0
defer(t.close)
f = t.open(zf)
at1 = t.commit(zf, {2:'c1'}) # XXX + hole -> zblk
at2 = t.commit(zf, {2:'c2', 3:'d2', 5:'f2'})
at3 = t.commit(zf, {2:'c3', 5:'f3'})
f.assertData(['','','c3','d2','x','x'])
f.assertCache([1,1,1,1,0,0])
# watched + commit -> read -> receive pin messages.
# read vs pin ordering is checked by assertBlk.
......
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