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
93197b5c
Commit
93197b5c
authored
May 16, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f53573a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+3
-4
No files found.
wcfs/wcfs_test.py
View file @
93197b5c
...
...
@@ -35,7 +35,7 @@ from persistent.timestamp import TimeStamp
import
os
,
os
.
path
,
subprocess
,
threading
from
errno
import
EINVAL
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
pytest
import
raises
from
six
import
reraise
...
...
@@ -682,9 +682,8 @@ def watch(w, zf, at): # XXX -> ?
print
(
'# pinok: %s'
%
pinstr
(
pinok
))
# send watch request and check that we receive pins for in-cache blocks
# changed > at.
# XXX use timeout to detect wcfs replying less pins.
ctx
,
cancel
=
context
.
with_cancel
(
context
.
background
())
# changed > at. Use timeout to detect wcfs replying less pins than expected.
ctx
,
cancel
=
context
.
with_timeout
(
context
.
background
(),
3
*
time
.
second
)
wg
=
sync
.
WorkGroup
(
ctx
)
def
_
(
ctx
):
...
...
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