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
64cd8ba0
Commit
64cd8ba0
authored
Jun 14, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4a0dd8a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+6
-6
No files found.
wcfs/wcfs_test.py
View file @
64cd8ba0
...
...
@@ -1164,7 +1164,7 @@ def test_wcfs():
# f @at1
f1
.
assertCache
([
1
,
1
,
1
])
f1
.
assertData
([
''
,
''
,
'c1'
])
# XXX mtime=at1?
f1
.
assertData
([
''
,
''
,
'c1'
])
# XXX mtime=at1?
# >>> f close / open again -> cache must not be lost
...
...
@@ -1172,7 +1172,8 @@ def test_wcfs():
f
.
assertCache
([
1
,
1
,
1
,
1
])
f
.
close
()
f
=
t
.
open
(
zf
)
assert
f
.
cached
()
!=
[
0
,
0
,
0
,
0
]
if
f
.
cached
()
!=
[
1
,
1
,
1
,
1
]:
assert
sum
(
f
.
cached
())
>
4
*
1
/
2
# > 50%
# >>> XXX commit data to not yet accessed f part - nothing happens
...
...
@@ -1226,8 +1227,8 @@ def test_wcfs():
" head/at (@%s); …"
%
(
h
(
zf
.
_p_oid
),
h
(
atpast
),
h
(
t
.
head
)))
wl
.
close
()
# some watch
requests with explicit pinok (also partly verifies how
# tWatchLink.watch computes automatic pinok)
# some watch
setup/update requests with explicit pinok (also partly
#
verifies how
tWatchLink.watch computes automatic pinok)
wl
=
t
.
openwatch
()
# XXX check @at0 ?
wl
.
watch
(
zf
,
at1
,
{
2
:
at1
,
3
:
at0
})
# -> at1 (new watch) XXX at0 -> ø (blk3 was hole)?
...
...
@@ -1235,7 +1236,7 @@ def test_wcfs():
wl
.
watch
(
zf
,
at3
,
{
2
:
None
})
# at2 -> at3 (current head)
wl
.
close
()
# all valid watch requests going at_i -> at_j -> ... with automatic pinok
# all valid watch
setup/update
requests going at_i -> at_j -> ... with automatic pinok
for
zf
in
t
.
zfiles
():
for
revv
in
t
.
iter_revv
():
print
(
'
\
n
--------'
)
...
...
@@ -1248,7 +1249,6 @@ def test_wcfs():
wl
.
close
()
# """
# XXX move before setup watch?
print
(
'
\
n
\
n
\
n
\
n
WATCH+COMMIT
\
n
\
n
'
)
# watched + commit -> read -> receive pin messages; read is stuck until pins are acknowledged
...
...
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