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
8755a1cf
Commit
8755a1cf
authored
Jun 24, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
677ebcb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+28
-2
No files found.
wcfs/wcfs_test.py
View file @
8755a1cf
...
...
@@ -1534,6 +1534,34 @@ def test_wcfs_remmap_on_pin():
f
.
_assertBlk
(
2
,
'hello'
,
{
wl
:
{
2
:
at1
}},
pinfunc
=
_
)
# NOTE not world
# verify watching for 2 files over single watch link.
@
func
def
test_wcfs_watch_2files
():
t
=
tDB
();
zf1
=
t
.
zfile
defer
(
t
.
close
)
t
.
root
[
'zfile2'
]
=
zf2
=
ZBigFile
(
blksize
)
t
.
commit
()
t
.
change
(
zf1
,
{
0
:
'a2'
,
2
:
'c2'
})
t
.
change
(
zf2
,
{
1
:
'β2'
,
3
:
'δ2'
})
at2
=
t
.
commit
()
t
.
change
(
zf1
,
{
0
:
'a3'
,
2
:
'c3'
})
t
.
change
(
zf2
,
{
1
:
'β3'
,
3
:
'δ3'
})
at3
=
t
.
commit
()
f1
=
t
.
open
(
zf1
)
f2
=
t
.
open
(
zf2
)
f1
.
assertData
([
'a3'
,
''
,
'x'
])
f2
.
assertData
([
''
,
'β3'
,
''
,
'x'
])
wl
=
t
.
openwatch
()
wl
.
watch
(
zf1
,
at2
,
{
0
:
at2
})
wl
.
watch
(
zf2
,
at2
,
{
1
:
at2
})
# XXX + access
...
...
@@ -1548,8 +1576,6 @@ def test_wcfs_remmap_on_pin():
# XXX watch for 2 files via single wlink
# XXX going not only up, but also down at1 <- at2 <- at3 ? -> forbid?
# XXX new watch request while previous watch request is in progress (over the same /head/watch handle)
...
...
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