Fix race in fakenodepool
A request can be deleted between the time we list and fetch it.
Change-Id: I73de9051bd533c271a9435ac4819c8876b678f7c
diff --git a/tests/base.py b/tests/base.py
index a988e37..db73a8d 100755
--- a/tests/base.py
+++ b/tests/base.py
@@ -908,10 +908,13 @@
reqs = []
for oid in sorted(reqids):
path = self.REQUEST_ROOT + '/' + oid
- data, stat = self.client.get(path)
- data = json.loads(data)
- data['_oid'] = oid
- reqs.append(data)
+ try:
+ data, stat = self.client.get(path)
+ data = json.loads(data)
+ data['_oid'] = oid
+ reqs.append(data)
+ except kazoo.exceptions.NoNodeError:
+ pass
return reqs
def getNodes(self):