Commit 267bfac0 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 4a043df9
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment