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
4adb2a06
Commit
4adb2a06
authored
Jun 07, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
14b40012
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+6
-2
No files found.
wcfs/wcfs_test.py
View file @
4adb2a06
...
...
@@ -487,7 +487,7 @@ class tFile:
# It also checks that file watches are properly notified on data access -
# - see "7.2) for all registered client@at watchers ..."
#
# pinokByWLink: {} tWatchLink ->
(zf, {} blk -> at)
.
# pinokByWLink: {} tWatchLink ->
{} blk -> at
.
# pinokByWLink can be None - in that case it is computed automatically.
def
assertBlk
(
t
,
blk
,
dataok
,
pinokByWLink
=
None
):
if
not
isinstance
(
dataok
,
bytes
):
...
...
@@ -515,12 +515,16 @@ class tFile:
# XXX and watch not already pinned on the watch
pinok
=
{
blk
:
t
.
tdb
.
_blkRev
(
t
.
zf
,
blk
,
wat
)}
shouldPin
=
True
wpin
[
wlink
]
=
(
t
.
zf
,
pinok
)
wpin
[
wlink
]
=
pinok
if
pinokByWLink
is
not
None
:
assert
wpin
==
pinokByWLink
,
"computed vs explicit pinokByWLink"
pinokByWLink
=
wpin
# doCheckingPin expect every wlink entry to also contain zf
for
wlink
,
pinok
in
pinokByWLink
.
items
():
pinokByWLink
[
wlink
]
=
(
t
.
zf
,
pinok
)
blkview
=
t
.
blk
(
blk
)
assert
t
.
cached
()[
blk
]
==
cached
...
...
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