Skip to content

Commit

Permalink
Fix test for innodb
Browse files Browse the repository at this point in the history
uid is guaranteed to be unique, not to be consecutive.
For some reason  innodb will give a uid of 3 for that test.
The real test is thus to test it is different, but not to test the equality
  • Loading branch information
tardyp committed Dec 7, 2016
1 parent 6ba5368 commit e0a8ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/buildbot/test/unit/test_db_users.py
Expand Up @@ -208,7 +208,7 @@ def test_addUser_existing_identifier(self):

def check_user(uid):
# creates a new user
self.assertEqual(uid, 2)
self.assertNotEqual(uid, 1)

def thd(conn):
users_tbl = self.db.model.users
Expand Down

0 comments on commit e0a8ae6

Please sign in to comment.