Change assertTrue to assertEqual
In test_ringbuilder.py, there is one assertTrue should be replaced with assertEqual. Change-Id: I9a0e4a7363a5e16cc9b6df045953dfbb4f9dbd07 Closes-bug: #1604320
This commit is contained in:
parent
c69a49a473
commit
f337421273
@ -1783,7 +1783,7 @@ class TestCommands(unittest.TestCase, RunSwiftRingBuilderMixin):
|
||||
self.assertEqual(ring.min_part_seconds_left, 0)
|
||||
self.assertSystemExit(EXIT_WARNING, ringbuilder.main, argv)
|
||||
ring = RingBuilder.load(self.tmpfile)
|
||||
self.assertTrue(ring.min_part_seconds_left, 3600)
|
||||
self.assertEqual(ring.min_part_seconds_left, 3600)
|
||||
|
||||
def test_rebalance_failure_does_not_reset_last_moves_epoch(self):
|
||||
ring = RingBuilder(8, 3, 1)
|
||||
|
Loading…
Reference in New Issue
Block a user