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
4414c6a4
Commit
4414c6a4
authored
Jul 17, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
effad023
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
wcfs/__init__.py
wcfs/__init__.py
+1
-1
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+8
-0
No files found.
wcfs/__init__.py
View file @
4414c6a4
...
...
@@ -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
i
s
None
:
if
exc
i
n
(
None
,
context
.
canceled
):
# canceled = .close asks pinner to stop
return
log
.
critical
(
'pinner failed:'
,
exc_info
=
1
)
print
(
'CRITICAL: pinned failed:'
,
file
=
sys
.
stderr
)
...
...
wcfs/wcfs_test.py
View file @
4414c6a4
...
...
@@ -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 ↓ ?
...
...
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