Add missing pauses in reconfiguration tests

We need to wait for zuul to settle before we can presume that
the new configuration is in place.

Change-Id: I47354c98325df12cf8180c77e6f34f738874ecc7
This commit is contained in:
James E. Blair 2017-03-06 11:36:13 -08:00
parent 673d68e24b
commit 7bbd7a3ef9
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,7 @@ class TestInRepoConfig(ZuulTestCase):
dict(name='project-test2', result='SUCCESS', changes='1,1')])
self.fake_gerrit.addEvent(A.getChangeMergedEvent())
self.waitUntilSettled()
# Now that the config change is landed, it should be live for
# subsequent changes.
@ -164,6 +165,7 @@ class TestInRepoConfig(ZuulTestCase):
self.assertHistory([
dict(name='project-test2', result='SUCCESS', changes='1,1')])
self.fake_gerrit.addEvent(A.getChangeMergedEvent())
self.waitUntilSettled()
# The config change should not affect master.
B = self.fake_gerrit.addFakeChange('org/project', 'master', 'B')