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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
64fddd20
Commit
64fddd20
authored
Apr 03, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
55498611
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
wcfs/client/client_test.py
wcfs/client/client_test.py
+1
-6
No files found.
wcfs/client/client_test.py
View file @
64fddd20
...
@@ -37,7 +37,7 @@ from wendelin.wcfs.internal import mm
...
@@ -37,7 +37,7 @@ from wendelin.wcfs.internal import mm
from
pytest
import
raises
from
pytest
import
raises
from
golang.golang_test
import
panics
from
golang.golang_test
import
panics
#
XXX
so that e.g. testdb is set up + ...
# so that e.g. testdb is set up + ...
def
setup_module
():
wcfs_test
.
setup_module
()
def
setup_module
():
wcfs_test
.
setup_module
()
def
teardown_module
():
wcfs_test
.
teardown_module
()
def
teardown_module
():
wcfs_test
.
teardown_module
()
def
setup_function
(
f
):
wcfs_test
.
setup_function
(
f
)
def
setup_function
(
f
):
wcfs_test
.
setup_function
(
f
)
...
@@ -50,8 +50,6 @@ class tMapping(object):
...
@@ -50,8 +50,6 @@ class tMapping(object):
t
.
tdb
=
tdb
t
.
tdb
=
tdb
t
.
mmap
=
mmap
t
.
mmap
=
mmap
# XXX assertCache
# assertBlk asserts that mmap[·] with · corresponding to blk reads as dataok.
# assertBlk asserts that mmap[·] with · corresponding to blk reads as dataok.
# pinnedOK: {} blk -> rev of t.mmap.fileh.pinned after access.
# pinnedOK: {} blk -> rev of t.mmap.fileh.pinned after access.
#
#
...
@@ -88,8 +86,6 @@ class tMapping(object):
...
@@ -88,8 +86,6 @@ class tMapping(object):
assert
fhpinned
(
t
.
tdb
,
fh
)
==
pinnedOK
assert
fhpinned
(
t
.
tdb
,
fh
)
==
pinnedOK
# XXX assertData
# assertBlkFaults asserts that mmap[·] with · corresponding to blk raises
# assertBlkFaults asserts that mmap[·] with · corresponding to blk raises
# SIGSEGV on read access.
# SIGSEGV on read access.
def
assertBlkFaults
(
t
,
blk
):
def
assertBlkFaults
(
t
,
blk
):
...
@@ -136,7 +132,6 @@ def test_wcfs_client():
...
@@ -136,7 +132,6 @@ def test_wcfs_client():
tm1
=
tMapping
(
t
,
m1
)
tm1
=
tMapping
(
t
,
m1
)
#assertCache(m1, [0,0,0])
assert
pinned
(
fh
)
==
{}
assert
pinned
(
fh
)
==
{}
# verify initial data reads
# verify initial data reads
...
...
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