Commit 4414c6a4 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent effad023
......@@ -176,7 +176,7 @@ def _pinner(wconn, ctx):
# print to stderr as well as by default log does not print to there.
def _():
exc = sys.exc_info()[1]
if exc is None:
if exc in (None, context.canceled): # canceled = .close asks pinner to stop
return
log.critical('pinner failed:', exc_info=1)
print('CRITICAL: pinned failed:', file=sys.stderr)
......
......@@ -1768,8 +1768,16 @@ def test_wcfspy_virtmem():
wconn.resync(at2)
assert f.pinned == {3:at1}
tm1.assertBlk(2, 'c2')
tm1.assertBlk(3, 'd1')
# resync at2 -> at3: #3 must unpin to @head
wconn.resync(at3)
assert f.pinned == {}
tm1.assertBlk(2, 'c2')
tm1.assertBlk(3, 'd3')
# XXX resync ↓ ?
......
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