Skip to content

Commit d60f008

Browse files
committed
I forgot that mysql is missing fractional seconds in it's
timestamps. So need to delay change of title by 2 seconds so journal occurs after create and then delay 2 seconds after change before synthesized journal entries.
1 parent 001e6ba commit d60f008

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/db_test_base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,11 @@ def testJournalNonexistingProperty(self):
12821282
# change and should not lead to a traceback.
12831283
self.db.user.create(username="mary", roles="User")
12841284
id = self.db.issue.create(title="spam", status='1')
1285+
# FIXME delay by two seconds due to mysql missing
1286+
# fractional seconds. This keeps the journal order correct.
1287+
time.sleep(2)
12851288
self.db.issue.set(id, title='green eggs')
1289+
time.sleep(2)
12861290
self.db.commit()
12871291
journal = self.db.getjournal('issue', id)
12881292
now = date.Date('.')

0 commit comments

Comments
 (0)