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
f5df0cea
Commit
f5df0cea
authored
Mar 05, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f76dfed1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
wcfs/client/client_test.py
wcfs/client/client_test.py
+13
-1
No files found.
wcfs/client/client_test.py
View file @
f5df0cea
...
...
@@ -171,6 +171,19 @@ def test_wcfs_client():
tm2
.
assertBlk
(
5
,
''
,
{})
tm2
.
assertBlk
(
6
,
''
,
{})
# open same fh twice, close once - fh2 continue to work ok
fh2
=
wconn
.
open
(
zf
.
_p_oid
)
defer
(
fh2
.
close
)
mfh2
=
fh2
.
mmap
(
2
,
3
);
defer
(
mfh2
.
unmap
);
tmfh2
=
tMapping
(
t
,
mfh2
)
tm1
.
assertBlk
(
2
,
'c2'
,
{});
tmfh2
.
assertBlk
(
2
,
'c2'
,
{})
tm1
.
assertBlk
(
3
,
'd3'
,
{});
tmfh2
.
assertBlk
(
3
,
'd3'
,
{})
tm1
.
assertBlk
(
4
,
'e3'
,
{});
tmfh2
.
assertBlk
(
4
,
'e3'
,
{})
fh2
.
close
()
tm1
.
assertBlk
(
2
,
'c2'
,
{});
tmfh2
.
assertBlk
(
2
,
'c2'
,
{})
tm1
.
assertBlk
(
3
,
'd3'
,
{});
tmfh2
.
assertBlk
(
3
,
'd3'
,
{})
tm1
.
assertBlk
(
4
,
'e3'
,
{});
tmfh2
.
assertBlk
(
4
,
'e3'
,
{})
# resync ↓ -> "forbidden" (reject is from server) -> wconn is down.
with
raises
(
error
,
match
=
": going back in history is forbidden"
):
wconn
.
resync
(
at2
)
with
raises
(
error
,
match
=
".*: connection closed"
):
wconn
.
open
(
zf
.
_p_oid
)
...
...
@@ -178,7 +191,6 @@ def test_wcfs_client():
# XXX w mapping with RW - in sync
# XXX fh close then open again and use
# XXX open same fh twice, close once - fh2 continue to work ok
# verify that on Conn/FileH down/closed -> Mappings switch to EFAULT on access.
...
...
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