Merge "Fix race in test_live_reconfiguration_command_socket"

This commit is contained in:
Zuul 2024-05-23 23:33:29 +00:00 committed by Gerrit Code Review
commit 1fc917cd66
1 changed files with 2 additions and 0 deletions

View File

@ -4077,6 +4077,8 @@ class TestScheduler(ZuulTestCase):
'tenant-one', EMPTY_LAYOUT_STATE)
self.waitUntilSettled()
# Layout last reconfigured time resolution is 1 second
time.sleep(1)
command_socket = self.scheds.first.config.get(
'scheduler', 'command_socket')
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as s: