Commit dcb0abab authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 0ef5bb4e
......@@ -170,3 +170,20 @@ def test_wcfs_client_down_efault():
defer(t.close)
pinned = lambda fh: fhpinned(t, fh)
at1 = t.commit(zf, {2:'c1', 3:'d1'})
wconn = t.wc.connect(at1)
defer(wconn.close)
fh = wconn.open(zf._p_oid)
defer(fh.close)
m1 = fh.mmap(2, 3)
defer(m1.unmap)
tm1 = tMapping(t, m1)
tm1.assertBlk(2, 'c1', {})
tm1.assertBlk(3, 'd1', {})
assert m1.mem[0*zf.blksize] == b'c'
assert m1.mem[1*zf.blksize] == b'd'
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