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:
parent
4895b9b40f
commit
5ec14aa8cb
|
@ -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' % (
|
||||
|
|
Loading…
Reference in New Issue