Merge "Fix flakey func test setup"

This commit is contained in:
Zuul 2019-02-07 17:38:31 +00:00 committed by Gerrit Code Review
commit 6c6bb80e40

View File

@ -50,7 +50,10 @@ class TestContainer(unittest2.TestCase):
resp = retry(put)
resp.read()
self.assertEqual(resp.status, 201)
# If the request was received and processed but the container-server
# timed out getting the response back to the proxy, or the proxy timed
# out getting the response back to the client, the next retry will 202
self.assertIn(resp.status, (201, 202))
self.max_meta_count = load_constraint('max_meta_count')
self.max_meta_name_length = load_constraint('max_meta_name_length')