Commit d91a05d9 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 627c1ab6
......@@ -856,29 +856,29 @@ def test_wcfs():
f.assertData ([], mtime=at0)
# >>> (@at1) commit data -> we can see it on wcfs
t.change(zf, {2: '1γ'})
t.change(zf, {2: '1cc'})
at1 = t.commit()
f.assertCache([0,0,0]) # initially not cached
f.assertData (['','','1γ'], mtime=t.head)
f.assertData (['','','1cc'], mtime=t.head)
# >>> (@at2) commit again -> we can see both latest and snapshotted states
t.change(zf, {2: '2γ', 3: '2δ'})
t.change(zf, {2: '2c', 3: '2d'})
at2 = t.commit()
# f @head
f.assertCache([1,1,0,0])
f.assertData (['','', '2γ', '2δ'], mtime=t.head)
f.assertData (['','', '2c', '2d'], mtime=t.head)
# f @at1
f1 = t.open(zf, at=at1)
f1.assertCache([0,0,1])
f1.assertData (['','','1γ']) # XXX + mtime=at1?
f1.assertData (['','','1cc']) # XXX + mtime=at1?
# >>> (@at3) commit again without changing zf size
f2 = t.open(zf, at=at2)
t.change(zf, {2: '3γ'})
t.change(zf, {2: '3c'})
at3 = t.commit()
f.assertCache([1,1,0,1])
......@@ -891,15 +891,15 @@ def test_wcfs():
# f @head
f.assertCache([1,1,0,1])
f.assertData (['','','3γ','2δ'], mtime=t.head)
f.assertData (['','','3c','2d'], mtime=t.head)
# f @at2
f2.assertCache([0,0,1,0])
f2.assertData (['','','2γ','2δ']) # XXX mtime=at2
f2.assertData (['','','2c','2d']) # XXX mtime=at2
# f @at1
f1.assertCache([1,1,1])
f1.assertData (['','','1γ']) # XXX + mtime=at1?
f1.assertData (['','','1cc']) # XXX + mtime=at1?
# >>> f close / open again -> cache must not be lost
......
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