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
905b601f
Commit
905b601f
authored
Jun 14, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d2fdb46c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+11
-4
No files found.
wcfs/wcfs_test.py
View file @
905b601f
...
@@ -894,6 +894,7 @@ def _pinAt(twlink, zf, at): # -> pin = {} blk -> rev
...
@@ -894,6 +894,7 @@ def _pinAt(twlink, zf, at): # -> pin = {} blk -> rev
#
#
# During setup it verifies that wcfs sends correct initial pins.
# During setup it verifies that wcfs sends correct initial pins.
#
#
# pinok: {} blk -> rev
# pinok can be None - in that case it is computed automatically.
# pinok can be None - in that case it is computed automatically.
@
func
(
tWatchLink
)
@
func
(
tWatchLink
)
def
watch
(
twlink
,
zf
,
at
,
pinok
=
None
):
# XXX -> ?
def
watch
(
twlink
,
zf
,
at
,
pinok
=
None
):
# XXX -> ?
...
@@ -1338,19 +1339,25 @@ def test_wcfs():
...
@@ -1338,19 +1339,25 @@ def test_wcfs():
f
.
assertBlk
(
5
,
'f4'
,
{
wl3
:
{},
wl3_
:
{}})
f
.
assertBlk
(
5
,
'f4'
,
{
wl3
:
{},
wl3_
:
{}})
w_assertPin
(
{
2
:
at3
,
3
:
at2
,
5
:
at0
})
w_assertPin
(
{
2
:
at3
,
3
:
at2
,
5
:
at0
})
# XXX advance watch - receives new pins/unpins to @head
# advance watch - receives new pins/unpins to @head.
# XXX this is already tested ^^^ in at_i -> at_j -> ...
# this is also tested ^^^ in `at_i -> at_j -> ...` watch setup/adjust.
wl3
.
watch
(
zf
,
at4
,
{
2
:
at4
,
5
:
None
})
# at3 -> at4
w_assertPin
(
{
2
:
at4
,
3
:
at2
})
wl3
.
watch
(
zf
,
at5
,
{
2
:
None
,
3
:
None
})
# at4 -> at5
w_assertPin
(
{})
wl3
.
close
()
wl3
.
close
()
# XXX access to block not previously accessed but invalidated in ZODB
# XXX watch with @at > head - must wait for head to become >= at
# XXX watch with @at > head - must wait for head to become >= at
# XXX access to block not previously accessed but invalidated in ZODB
# XXX drop file[blk] from cache, access again -> no pin message sent the second time
# XXX drop file[blk] from cache, access again -> no pin message sent the second time
# XXX no reply to pin - killed
# XXX no reply to pin - killed
# XXX blk not initially covered by f.δtail (blk never accessed - f.δtail
# XXX blk not initially covered by f.δtail (blk never accessed - f.δtail
# not updated on invalidation). then blk is accessed - what happens with
# not updated on invalidation). then blk is accessed - what happens with
# watch that should be triggerring for this blk?
# watch that should be triggerring for this blk?
...
...
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