From e0a8ae6d7b935d0f0611a3e22708e7db3a868c63 Mon Sep 17 00:00:00 2001 From: Pierre Tardy Date: Wed, 7 Dec 2016 14:59:18 +0100 Subject: [PATCH] Fix test for innodb 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 --- master/buildbot/test/unit/test_db_users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/master/buildbot/test/unit/test_db_users.py b/master/buildbot/test/unit/test_db_users.py index b8d306eb38d..33284c16b60 100644 --- a/master/buildbot/test/unit/test_db_users.py +++ b/master/buildbot/test/unit/test_db_users.py @@ -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