Commit 25c8ad3e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 6f6fa406
......@@ -1217,7 +1217,7 @@ def test_wcfs_basic():
f.assertData (['','','c1'], mtime=t.head)
# >>> (@at2) commit again -> we can see both latest and snapshotted states
# NOTE blocks d(4) and f(5) will be accessed only in the end
# NOTE blocks e(4) and f(5) will be accessed only in the end
at2 = t.commit(zf, {2:'c2', 3:'d2', 5:'f2'})
# f @head
......@@ -1233,19 +1233,19 @@ def test_wcfs_basic():
# >>> (@at3) commit again without changing zf size
f2 = t.open(zf, at=at2)
at3 = t.commit(zf, {2:'c3', 5:'f3'}) # FIXME + a3 after δbtree works (hole -> zblk)
at3 = t.commit(zf, {0:'a3', 2:'c3', 5:'f3'})
f.assertCache([1,1,0,1,0,0])
f.assertCache([0,1,0,1,0,0])
# f @head is opened again -> cache must not be lost
f_ = t.open(zf)
f_.assertCache([1,1,0,1,0,0])
f_.assertCache([0,1,0,1,0,0])
f_.close()
f.assertCache([1,1,0,1,0,0])
f.assertCache([0,1,0,1,0,0])
# f @head
f.assertCache([1,1,0,1,0,0])
f.assertData (['','','c3','d2','x','x'], mtime=t.head)
f.assertCache([0,1,0,1,0,0])
f.assertData (['a3','','c3','d2','x','x'], mtime=t.head)
# f @at2
# NOTE f(2) is accessed but via @at/ not head/ ; f(2) in head/zf remains unaccessed
......@@ -1266,7 +1266,7 @@ def test_wcfs_basic():
assert sum(f.cached()) > 4*1/2 # > 50%
# verify all blocks
f.assertData(['','','c3','d2','','f3'])
f.assertData(['a3','','c3','d2','','f3'])
f.assertCache([1,1,1,1,1,1])
......
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