suppress warning output in a unit test
test_write_builder_after_device_removal() wasn't setting a default min_part_hours so a warnign was printed. Explicitly adding a min_part_hours suppresses the warning Change-Id: I6f234b72c34e066abb91f28e6eacf50e29be8842
This commit is contained in:
parent
85aaf50c21
commit
d755f5b520
@ -1796,7 +1796,7 @@ class TestCommands(unittest.TestCase, RunSwiftRingBuilderMixin):
|
||||
os.path.basename(self.tmpfile) + ".ring.gz")
|
||||
os.remove(self.tmpfile) # loses file...
|
||||
|
||||
argv = ["", backup_file, "write_builder"]
|
||||
argv = ["", backup_file, "write_builder", "24"]
|
||||
self.assertEqual(ringbuilder.main(argv), None)
|
||||
|
||||
def test_warn_at_risk(self):
|
||||
|
Loading…
Reference in New Issue
Block a user