Commit 9cd3f7cc authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 89a69226
......@@ -39,7 +39,7 @@ from golang import go, chan, select, func, defer
from golang import context, sync, time
from golang.gcompat import qq
from zodbtools.util import ashex as h, fromhex
from pytest import raises
from pytest import raises, mark
from six import reraise
from .internal import mm
from .internal.wcfs_test import read_nogil, install_sigbus_trap, fadvise_dontneed
......@@ -1265,6 +1265,24 @@ def test_wcfs_basic():
f.assertCache([1,1,1,1,1,1])
# verify how wcfs processes ZODB invalidations when hole becomes a block with data.
# XXX currently fails (needs δbtree)
# TODO merge into test_wcfs_basic & watch tests after δbtree is done
@mark.xfail
@func
def test_wcfs_basic_hole2zblk():
t = tDB(); zf = t.zfile
defer(t.close)
f = t.open(zf)
t.commit(zf, {2:'c1'}) # b & a are holes
f.assertCache([0,0,0])
f.assertData(['','','c1'])
t.commit(zf, {1:'b2'}) # hole -> zblk
f.assertCache([1,0,1])
f.assertData(['','b2','c1'])
# verify that watch setup is robust to client errors/misbehaviour.
@func
def test_wcfs_watch_robust():
......
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