From 32d2af06efd7925926dae01276c0feefde27326b Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Thu, 31 Jan 2019 18:05:19 -0800 Subject: [PATCH] Fix flakey func test setup Change-Id: Ib52fb94f34716400224bf2654beefbcc250e3b58 --- test/functional/test_container.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/functional/test_container.py b/test/functional/test_container.py index c9b59db126..5efdbc6d01 100644 --- a/test/functional/test_container.py +++ b/test/functional/test_container.py @@ -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')