Commit dbd20da3 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent a90f9ad4
......@@ -14,4 +14,4 @@ py.test \
`# https://stackoverflow.com/a/47893653/9456786` \
-p no:cacheprovider \
\
-vsx -k test_wcfs
-vsx -k test_tidtime_notrough
......@@ -787,10 +787,13 @@ def tidtime(tid):
# NOTE pytest.approx supports only ==, not e.g. <, so we use plain round.
return round(t, 6)
# verify that tidtime is precise enough to show difference in between transactions.
@func
def test_tidtime_notrough():
t = tDB()
defer(t.close)
at0 = t.commit()
at1 = t.commit()
assert tidtime(at1) > tidtime(at0)
atprev = t.commit()
for i in range(10):
at = t.commit()
assert tidtime(at) > tidtime(atprev)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment