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
5e263705
Commit
5e263705
authored
Mar 13, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
16dea9d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+7
-6
No files found.
wcfs/wcfs_test.py
View file @
5e263705
...
...
@@ -115,7 +115,7 @@ def test_join_autostart():
assert
os
.
path
.
isdir
(
wc
.
mountpoint
+
"/head/bigfile"
)
# tDB is
testing database/wcfs
environment.
# tDB is
database/wcfs testing
environment.
class
tDB
:
def
__init__
(
t
):
t
.
root
=
testdb
.
dbopen
()
...
...
@@ -191,7 +191,7 @@ def test_wcfs():
t
=
tDB
()
defer
(
t
.
close
)
t
.
root
[
'
obj'
]
=
nonfile
=
Persistent
()
t
.
root
[
'
!file'
]
=
nonfile
=
Persistent
()
t
.
root
[
'zfile'
]
=
f
=
ZBigFile
(
blksize
)
tid1
=
t
.
commit
()
...
...
@@ -204,12 +204,13 @@ def test_wcfs():
t
.
stat
(
nonfile
)
assert
exc
.
value
.
errno
==
EINVAL
st
=
t
.
stat
(
f
)
assert
st
.
st_size
==
0
assert
st
.
st_mtime
==
tidtime
(
tid1
)
# file initially empty
_
=
t
.
stat
(
f
)
assert
_
.
st_size
==
0
assert
_
.
st_mtime
==
tidtime
(
tid1
)
# head/at = last txn of whole db
assert
t
.
read
(
"head/at"
)
==
h
(
t
id2
)
assert
t
.
read
(
"head/at"
)
==
h
(
t
.
head
)
# commit data to f and make sure we can see it on wcfs
...
...
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