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
dbd20da3
Commit
dbd20da3
authored
May 03, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a90f9ad4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
wcfs/test.sh
wcfs/test.sh
+1
-1
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+6
-3
No files found.
wcfs/test.sh
View file @
dbd20da3
...
@@ -14,4 +14,4 @@ py.test \
...
@@ -14,4 +14,4 @@ py.test \
`
# https://stackoverflow.com/a/47893653/9456786` \
`
# https://stackoverflow.com/a/47893653/9456786` \
-p
no:cacheprovider
\
-p
no:cacheprovider
\
\
\
-vsx
-k
test_
wcfs
-vsx
-k
test_
tidtime_notrough
wcfs/wcfs_test.py
View file @
dbd20da3
...
@@ -787,10 +787,13 @@ def tidtime(tid):
...
@@ -787,10 +787,13 @@ def tidtime(tid):
# NOTE pytest.approx supports only ==, not e.g. <, so we use plain round.
# NOTE pytest.approx supports only ==, not e.g. <, so we use plain round.
return
round
(
t
,
6
)
return
round
(
t
,
6
)
# verify that tidtime is precise enough to show difference in between transactions.
@
func
def
test_tidtime_notrough
():
def
test_tidtime_notrough
():
t
=
tDB
()
t
=
tDB
()
defer
(
t
.
close
)
defer
(
t
.
close
)
at0
=
t
.
commit
()
atprev
=
t
.
commit
()
at1
=
t
.
commit
()
for
i
in
range
(
10
):
assert
tidtime
(
at1
)
>
tidtime
(
at0
)
at
=
t
.
commit
()
assert
tidtime
(
at
)
>
tidtime
(
atprev
)
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