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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
c3055c52
Commit
c3055c52
authored
Nov 26, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
52528478
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+1
-16
No files found.
wcfs/wcfs_test.py
View file @
c3055c52
...
@@ -1332,13 +1332,7 @@ def test_wcfs_pintimeout_kill():
...
@@ -1332,13 +1332,7 @@ def test_wcfs_pintimeout_kill():
wg
=
sync
.
WorkGroup
(
ctx
)
wg
=
sync
.
WorkGroup
(
ctx
)
def
_
(
ctx
):
def
_
(
ctx
):
# send watch. The pin handler won't be replying -> we should never get reply here.
# send watch. The pin handler won't be replying -> we should never get reply here.
rxq
=
wl
.
_sendReq
(
ctx
,
b"watch %s @%s"
%
(
h
(
zf
.
_p_oid
),
h
(
at1
)))
wl
.
sendReq
(
ctx
,
b"watch %s @%s"
%
(
h
(
zf
.
_p_oid
),
h
(
at1
)))
_
,
_rx
=
select
(
ctx
.
done
().
recv
,
# 0
rxq
.
recv
,
# 1
)
if
_
==
0
:
raise
ctx
.
err
()
fail
(
"watch request completed (should not as pin handler is stuck)"
)
fail
(
"watch request completed (should not as pin handler is stuck)"
)
wg
.
go
(
_
)
wg
.
go
(
_
)
def
_
(
ctx
):
def
_
(
ctx
):
...
@@ -1381,15 +1375,6 @@ def test_wcfs_watch_setup_ahead():
...
@@ -1381,15 +1375,6 @@ def test_wcfs_watch_setup_ahead():
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
)))
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)))
_, _rx = select(
ctx.done().recv, # 0
rxq.recv, # 1
)
if _ == 0:
raise ctx.err()
"""
assert
ready
(
committing
)
assert
ready
(
committing
)
assert
rx
==
b"ok"
assert
rx
==
b"ok"
wg
.
go
(
_
)
wg
.
go
(
_
)
...
...
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