From ca4d6ec9924275b998d4748980ef8a3597bf7936 Mon Sep 17 00:00:00 2001 From: Kota Tsuyuzaki Date: Tue, 15 Jan 2019 20:06:25 +0900 Subject: [PATCH] Save original index in the determine_chunk_destinations test Unfortunately (fortunately?), it has not been realizing as an issue but appearently we intended to save the fragment index before the test punches the hole in the putter list. Change-Id: Ib33ff305615b2d342f0d673ded5ed8f11b663feb --- test/unit/proxy/controllers/test_obj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/proxy/controllers/test_obj.py b/test/unit/proxy/controllers/test_obj.py index 25dbc44b64..0710e85481 100644 --- a/test/unit/proxy/controllers/test_obj.py +++ b/test/unit/proxy/controllers/test_obj.py @@ -2097,7 +2097,7 @@ class TestECObjController(ECObjectControllerMixin, unittest.TestCase): self.assertEqual(got, expected) # now lets make a handoff at the end - orig_index = putters[-1].node_index = None + orig_index = putters[-1].node_index putters[-1].node_index = None got = controller._determine_chunk_destinations(putters, self.policy) self.assertEqual(got, expected)