Commit 52528478 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 52bc8503
...@@ -159,7 +159,6 @@ cdef class PyWatchLink: ...@@ -159,7 +159,6 @@ cdef class PyWatchLink:
raise RuntimeError(err.Error()) # XXX -> Xpy(err) ? pyraiseIf(err) ? raise RuntimeError(err.Error()) # XXX -> Xpy(err) ? pyraiseIf(err) ?
#printf("pyxsendReq: reply -> ok\n")
return reply return reply
......
...@@ -1380,6 +1380,8 @@ def test_wcfs_watch_setup_ahead(): ...@@ -1380,6 +1380,8 @@ def test_wcfs_watch_setup_ahead():
defer(wl.close) defer(wl.close)
wat = tidfromtime(tidtime(at1) + 1*dt) # > at1, but < at2 wat = tidfromtime(tidtime(at1) + 1*dt) # > at1, but < at2
rx = wl.sendReq(ctx, b"watch %s @%s" % (h(zf._p_oid), h(wat)))
"""
rxq = wl._sendReq(ctx, b"watch %s @%s" % (h(zf._p_oid), h(wat))) rxq = wl._sendReq(ctx, b"watch %s @%s" % (h(zf._p_oid), h(wat)))
_, _rx = select( _, _rx = select(
ctx.done().recv, # 0 ctx.done().recv, # 0
...@@ -1387,8 +1389,9 @@ def test_wcfs_watch_setup_ahead(): ...@@ -1387,8 +1389,9 @@ def test_wcfs_watch_setup_ahead():
) )
if _ == 0: if _ == 0:
raise ctx.err() raise ctx.err()
"""
assert ready(committing) assert ready(committing)
assert _rx == b"ok" assert rx == b"ok"
wg.go(_) wg.go(_)
# T2: sleep(10·dt); commit # T2: sleep(10·dt); commit
......
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