Merge "Fix waitUntilSettled nodepool race"
This commit is contained in:
commit
010bf70c8b
|
@ -5345,8 +5345,8 @@ class ZuulTestCase(BaseTestCase):
|
|||
for req in self.fake_nodepool.getNodeRequests():
|
||||
if req['state'] != model.STATE_FULFILLED:
|
||||
return False
|
||||
r2 = nodepool.zk_nodepool.getNodeRequest(req['_oid'],
|
||||
cached=True)
|
||||
r2 = nodepool.zk_nodepool._node_request_cache.get(
|
||||
req['_oid'])
|
||||
if r2 and r2.state != req['state']:
|
||||
return False
|
||||
if req and not r2:
|
||||
|
|
Loading…
Reference in New Issue