Commit 3025a620 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 85acf6d6
......@@ -1237,7 +1237,7 @@ def test_wcfs():
# commit again:
# - block is already pinned (#2) -> not notified
# - wlink closed -> watch no longer notified this
# - wlink closed (wl2) -> watch no longer notified this
f.assertCache([1,1,1,1,1,1])
t.change(zf, {2: '5c', 3: '5d'})
at5 = t.commit()
......@@ -1245,11 +1245,13 @@ def test_wcfs():
t.dump_history()
wl2.close()
f.assertBlk(0, '', {wl1: {}, wl2: {}}) # no change
f.assertBlk(1, '', {wl1: {}, wl2: {}})
f.assertBlk(2, '5c', {wl1: {}, wl2: {}}) # blk2 already pinned on wl1 XXX wl2 = ?
f.assertBlk(3, '5d', {wl1: {3: at2}, wl2: {}}) # wl2 not notified, because it was closed
wl2.close() # wl2 should not be notified because it was closed
f.assertBlk(0, '', {wl1: {}}) # no change
f.assertBlk(1, '', {wl1: {}})
f.assertBlk(2, '5c', {wl1: {}}) # blk2 already pinned on wl1
f.assertBlk(3, '5d', {wl1: {3: at2}})
f.assertBlk(4, '', {wl1: {}})
f.assertBlk(5, '4f', {wl1: {}})
# XXX watch with at="-" -> watch no longer notified this
......
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