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
5da740cd
Commit
5da740cd
authored
May 21, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
31eb89c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
3 deletions
+28
-3
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+28
-3
No files found.
wcfs/wcfs_test.py
View file @
5da740cd
...
...
@@ -429,6 +429,8 @@ class tFile:
#
# .sendReq()/.recvReq() provides raw IO in terms of wcfs invalidation protocol messages.
# .watch() setups a watch for a file and verifies ... XXX
#
# XXX -> tWatchLink ?
class
tWatch
:
def
__init__
(
t
,
tdb
):
...
...
@@ -847,9 +849,17 @@ def test_wcfs():
# XXX invalid requests -> wcfs replies error
# XXX -> separate test?
w
=
t
.
openwatch
()
assert
w
.
sendReq
(
context
.
background
(),
b'bla bla'
)
==
""
print
(
'
\
n
\
n
zzzzzzz
\
n
\
n
'
)
try
:
assert
w
.
sendReq
(
context
.
background
(),
b'bla bla'
)
==
""
except
:
import
traceback
;
traceback
.
print_exc
()
raise
# assert w closed
print
(
'
\
n
\
n
0000000
\
n
\
n
'
)
w
.
close
()
print
(
'
\
n
\
n
1111111
\
n
\
n
'
)
for
zf
in
t
.
zfiles
():
# watch going at_i -> at_j -> ...
...
...
@@ -906,9 +916,24 @@ def test_wcfs():
# setupWatch must send pins.
@
func
def
test_wcfs_invproto
():
# XXX
pass
# XXX temp debug
"""
def _():
print('BBB')
1/0
defer(_)
"""
#raise RuntimeError('zzz')
try
:
print
(
'
\
n
AAA'
)
assert
1
==
2
finally
:
2
/
0
# ---- misc ---
...
...
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