Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
9cd3f7cc
Commit
9cd3f7cc
authored
Jun 25, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
89a69226
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+19
-1
No files found.
wcfs/wcfs_test.py
View file @
9cd3f7cc
...
...
@@ -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
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment