Fix race in test_crd_check_unknown

The Gerrit change depends on a GitHub change which hasn't finished
propogating by the time the Gerrit event was received.  Wait until
things have settled after the GitHub change is created.

Change-Id: I0750c9992f35cf52278cf24562802f7fc4ef0319
This commit is contained in:
James E. Blair 2018-08-10 15:41:21 -07:00
parent 4895b9b40f
commit 5ec14aa8cb
1 changed files with 1 additions and 0 deletions

View File

@ -280,6 +280,7 @@ class TestGerritToGithubCRD(ZuulTestCase):
A = self.fake_gerrit.addFakeChange('gerrit/project1', 'master', 'A')
B = self.fake_github.openFakePullRequest(
'github/project2', 'master', 'B')
self.waitUntilSettled()
# A Depends-On: B
A.data['commitMessage'] = '%s\n\nDepends-On: %s\n' % (