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
03523e08
Commit
03523e08
authored
Jun 27, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
492ed94d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+22
-0
No files found.
wcfs/wcfs_test.py
View file @
03523e08
...
...
@@ -1356,6 +1356,28 @@ def test_wcfs_watch_robust():
" head/at (@%s); …"
%
(
h
(
zf
.
_p_oid
),
h
(
atpast
),
h
(
t
.
head
)))
wl
.
close
()
# verify that watch file @at when it did not existed -> error
@
xfail
# check that file exists @at
@
func
def
test_wcfs_watch_before_create
():
t
=
tDB
();
zf
=
t
.
zfile
defer
(
t
.
close
)
at1
=
t
.
commit
(
zf
,
{
2
:
'c1'
})
zf2
=
t
.
root
[
'zfile2'
]
=
ZBigFile
(
blksize
)
# zf2 created @at2
at2
=
t
.
commit
()
at3
=
t
.
commit
(
zf2
,
{
1
:
'β3'
})
# force wcfs to access/know zf2
f2
=
t
.
open
(
zf2
)
f2
.
assertData
([
''
,
'β3'
])
wl
=
t
.
openwatch
()
assert
wl
.
sendReq
(
timeout
(),
b"watch %s @%s"
%
(
h
(
zf2
.
_p_oid
),
h
(
at1
)))
==
\
"error setup watch f<%s> @%s: "
%
(
h
(
zf2
.
_p_oid
),
h
(
at1
))
+
\
"file does not exist at that database state"
wl
.
close
()
# verify that wcfs kills slow/faulty client who does not reply to pin in time.
@
xfail
# protection against faulty/slow clients
...
...
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