From ecb5aa120f9977b69e01d8dc4140df5437222c26 Mon Sep 17 00:00:00 2001 From: Alistair Coles Date: Tue, 6 Apr 2021 09:51:34 +0100 Subject: [PATCH] relinker: trivial comment and test fixes Change-Id: Ie7d8277fc2626c20bd7bcf108959ac4d3e6c64ac --- swift/cli/relinker.py | 2 +- test/unit/cli/test_relinker.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/swift/cli/relinker.py b/swift/cli/relinker.py index 9fd88a87b5..2efacec237 100644 --- a/swift/cli/relinker.py +++ b/swift/cli/relinker.py @@ -267,7 +267,7 @@ class Relinker(object): start = self.next_part_power - 1 stop = max(start - self.conf['link_check_limit'], -1) for check_part_power in range(start, stop, -1): - # Try to create the link from each of 3 previous part power + # Try to create the link from each of several previous part power # locations. If an attempt succeeds then either a link was made or # an existing link with the same inode as the next part power # location was found: either is acceptable. The part power location diff --git a/test/unit/cli/test_relinker.py b/test/unit/cli/test_relinker.py index c2f3c27035..bb3b508b69 100644 --- a/test/unit/cli/test_relinker.py +++ b/test/unit/cli/test_relinker.py @@ -1238,7 +1238,6 @@ class TestRelinker(unittest.TestCase): self.assertIn('2 hash dirs processed (cleanup=False) ' '(2 files, 0 linked, 1 removed, 0 errors)', info_lines) - print(info_lines) with open(new_filepath, 'r') as fd: self.assertEqual(old_filepath, fd.read()) self.assertFalse(os.path.exists(older_filepath))