Commit 93197b5c authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent f53573a2
...@@ -35,7 +35,7 @@ from persistent.timestamp import TimeStamp ...@@ -35,7 +35,7 @@ from persistent.timestamp import TimeStamp
import os, os.path, subprocess, threading import os, os.path, subprocess, threading
from errno import EINVAL from errno import EINVAL
from golang import chan, func, defer, select from golang import chan, func, defer, select
from golang import context, sync from golang import context, sync, time
from zodbtools.util import ashex as h, fromhex from zodbtools.util import ashex as h, fromhex
from pytest import raises from pytest import raises
from six import reraise from six import reraise
...@@ -682,9 +682,8 @@ def watch(w, zf, at): # XXX -> ? ...@@ -682,9 +682,8 @@ def watch(w, zf, at): # XXX -> ?
print('# pinok: %s' % pinstr(pinok)) print('# pinok: %s' % pinstr(pinok))
# send watch request and check that we receive pins for in-cache blocks # send watch request and check that we receive pins for in-cache blocks
# changed > at. # changed > at. Use timeout to detect wcfs replying less pins than expected.
# XXX use timeout to detect wcfs replying less pins. ctx, cancel = context.with_timeout(context.background(), 3*time.second)
ctx, cancel = context.with_cancel(context.background())
wg = sync.WorkGroup(ctx) wg = sync.WorkGroup(ctx)
def _(ctx): def _(ctx):
......
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