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
267bfac0
Commit
267bfac0
authored
Jun 10, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4a043df9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+14
-14
No files found.
wcfs/wcfs_test.py
View file @
267bfac0
...
...
@@ -78,20 +78,6 @@ def teardown_function(f):
os
.
rmdir
(
testmntpt
)
# many tests need to be run with some reasonable timeout to detect lack of wcfs
# response. with_timout and timeout provides syntatic shortcuts to do so.
def
with_timeout
(
parent
=
context
.
background
()):
# -> ctx, cancel
return
context
.
with_timeout
(
parent
,
3
*
time
.
second
)
def
timeout
(
parent
=
context
.
background
()):
# -> ctx
ctx
,
_
=
with_timeout
()
return
ctx
# XXX
def
tdelay
():
time
.
sleep
(
1
*
time
.
millisecond
)
# XXX -> 10ms ?
# ---- test join/autostart ----
# test that zurl does not change from one open to another storage open.
...
...
@@ -137,6 +123,20 @@ def test_join_autostart():
# --- test access to data ----
# XXX place=?
# many tests need to be run with some reasonable timeout to detect lack of wcfs
# response. with_timout and timeout provides syntatic shortcuts to do so.
def
with_timeout
(
parent
=
context
.
background
()):
# -> ctx, cancel
return
context
.
with_timeout
(
parent
,
3
*
time
.
second
)
def
timeout
(
parent
=
context
.
background
()):
# -> ctx
ctx
,
_
=
with_timeout
()
return
ctx
# XXX
def
tdelay
():
time
.
sleep
(
1
*
time
.
millisecond
)
# XXX -> 10ms ?
# DF represents a change in files space.
# it corresponds to ΔF in wcfs.go .
class
DF
:
...
...
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