Skip to content

Commit 47904fb

Browse files
committed
Add more sleeps to work around mysql timestamp issue.
1 parent f07f522 commit 47904fb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/db_test_base.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,10 @@ def testQuietJournal(self):
11091109
# If journal is retrieved by admin this adds the role
11101110
# change as the last element. If retreived by non-admin
11111111
# it should not be returned because the user has no
1112-
# View permissons on role..
1112+
# View permissons on role.
1113+
# FIXME delay by two seconds due to mysql missing
1114+
# fractional seconds. See sleep above for details
1115+
time.sleep(2)
11131116
result=self.db.user.set(new_user, roles="foo, bar")
11141117

11151118
# Verify last journal entry as admin is a role change
@@ -1130,7 +1133,7 @@ def testQuietJournal(self):
11301133
{'roles': None})]
11311134
'''
11321135
(id, tx_date, user, action, args) = result[-1]
1133-
expected= {'roles': None }
1136+
expected = {'roles': None }
11341137

11351138
self.assertEqual('3', id)
11361139
self.assertEqual('1', user)
@@ -1143,6 +1146,8 @@ def testQuietJournal(self):
11431146
# 'username', 'supervisor', 'assignable' i.e. age is not
11441147
# one of them.
11451148
id = self.db.user.lookup("fred")
1149+
# FIXME mysql timestamp issue see sleeps above
1150+
time.sleep(2)
11461151
result=self.db.user.set(id, roles="User")
11471152
# make the user fred current.
11481153
self.db.setCurrentUser('fred')

0 commit comments

Comments
 (0)