Skip to content

Commit

Permalink
Wait for data to be inserted
Browse files Browse the repository at this point in the history
Fixes #3057.
  • Loading branch information
djmitche committed Dec 1, 2014
1 parent d567123 commit d75eade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions master/buildbot/test/unit/test_db_changes.py
Expand Up @@ -151,7 +151,7 @@ def test_addChange_getChange(self):

@defer.inlineCallbacks
def test_addChange_withParent(self):
self.insertTestData(self.change14_rows)
yield self.insertTestData(self.change14_rows)

clock = task.Clock()
clock.advance(SOMETIME)
Expand Down Expand Up @@ -812,7 +812,7 @@ def test_getChangesForBuild(self):
'sourcestampid': 235,
'when_timestamp': epoch2datetime(SOMETIME + 30)}]

self.insertTestData(rows)
yield self.insertTestData(rows)

# 1st build (Eg: no previous build)
self.assertEqual(sorted((yield self.db.changes.getChangesForBuild(49))),
Expand Down

0 comments on commit d75eade

Please sign in to comment.