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
6db11b65
Commit
6db11b65
authored
Mar 03, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
dcb0abab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
wcfs/client/client_test.py
wcfs/client/client_test.py
+9
-0
No files found.
wcfs/client/client_test.py
View file @
6db11b65
...
...
@@ -28,6 +28,7 @@ wcfs.py/wcfs.go while running tox tests in wcfs mode.
from
__future__
import
print_function
,
absolute_import
from
golang
import
func
,
defer
,
b
from
golang.golang_test
import
panics
from
wendelin.wcfs.wcfs_test
import
tDB
,
tAt
from
wendelin.wcfs
import
wcfs_test
from
wendelin.wcfs.internal.wcfs_test
import
read_mustfault
...
...
@@ -185,5 +186,13 @@ def test_wcfs_client_down_efault():
tm1
.
assertBlk
(
2
,
'c1'
,
{})
tm1
.
assertBlk
(
3
,
'd1'
,
{})
with
panics
(
"not faulted"
):
read_mustfault
(
m1
.
mem
[
0
*
zf
.
blksize
:][:
1
])
with
panics
(
"not faulted"
):
read_mustfault
(
m1
.
mem
[
1
*
zf
.
blksize
:][:
1
])
assert
m1
.
mem
[
0
*
zf
.
blksize
]
==
b'c'
assert
m1
.
mem
[
1
*
zf
.
blksize
]
==
b'd'
# close fileh -> m1 must turn into efaulting memory
fh
.
close
()
read_mustfault
(
m1
.
mem
[
0
*
zf
.
blksize
:][:
1
])
read_mustfault
(
m1
.
mem
[
1
*
zf
.
blksize
:][:
1
])
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