Browse Source

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
changes/06/591106/1
James E. Blair 3 years ago
parent
commit
5ec14aa8cb
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      tests/unit/test_cross_crd.py

+ 1
- 0
tests/unit/test_cross_crd.py 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' % (


Loading…
Cancel
Save