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
This commit is contained in:
Kota Tsuyuzaki 2019-01-15 20:06:25 +09:00
parent b9d2c08e8d
commit ca4d6ec992

View File

@ -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)