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
af6e8fe7
Commit
af6e8fe7
authored
Dec 25, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0d216b9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+3
-3
No files found.
wcfs/wcfs_test.py
View file @
af6e8fe7
...
@@ -240,12 +240,12 @@ def test_bigfile_empty():
...
@@ -240,12 +240,12 @@ def test_bigfile_empty():
fsize1
=
fsize
fsize1
=
fsize
fsize
=
fsize1
+
blksize
# we added one more block
fsize
=
fsize1
+
blksize
# we added one more block
st
=
os
.
stat
(
fpath
+
"/head/data"
)
st
=
os
.
stat
(
fpath
)
assert
st
.
st_size
==
fsize
assert
st
.
st_size
==
fsize
#assert st.st_mtime == tidtime(tidlast) FIXME proper sync
#assert st.st_mtime == tidtime(tidlast) FIXME proper sync
assert
readfile
(
fpath
+
"/head
/at"
)
==
tidlast
.
encode
(
"hex"
)
assert
readfile
(
head
+
"
/at"
)
==
tidlast
.
encode
(
"hex"
)
data
=
readfile
(
fpath
+
"/head/data"
)
data
=
readfile
(
fpath
)
assert
len
(
data
)
==
fsize
assert
len
(
data
)
==
fsize
for
i
in
range
(
hole
):
for
i
in
range
(
hole
):
assert
data
[
i
*
blksize
:(
i
+
1
)
*
blksize
]
==
b'
\
0
'
*
blksize
assert
data
[
i
*
blksize
:(
i
+
1
)
*
blksize
]
==
b'
\
0
'
*
blksize
...
...
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