Skip to content

Commit

Permalink
fix bad deferred handling causing race-condition failures in postgres…
Browse files Browse the repository at this point in the history
… tests
  • Loading branch information
djmitche authored and sa1 committed Apr 12, 2012
1 parent 02bb0f7 commit a4b300f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions master/buildbot/test/unit/test_db_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,8 @@ def thd(conn):
return d

def test_findUser_existing(self):
d = self.insertTestData(self.user1_rows)
d = self.insertTestData(self.user2_rows)
d = self.insertTestData(self.user3_rows)
d = self.insertTestData(
self.user1_rows + self.user2_rows + self.user3_rows)
d.addCallback(lambda _ : self.db.users.findUserByAttr(
identifier='lye',
attr_type='git',
Expand Down

0 comments on commit a4b300f

Please sign in to comment.