swift/test/unit
Christian Schwede 67d545e90f Fix timing test error when rebalancing
The reported timing can be 00:59:59 sometimes, but is still valid. This
will fail in the tests, as seen in [1].

This patch fixes this by mocking the current time, ensuring that the
first two rebalances happen at the same time.

[1] http://logs.openstack.org/97/337297/32/check/gate-swift-python27-ubuntu-xenial/46203f1/console.html#_2017-02-08_07_28_42_589176

Change-Id: I0fd43d5bb13d0e88126f4f6ba14fb87faab6df9c
2017-02-04 05:59:15 +00:00
..
account Make timestamp setting to be consistent in test loop 2017-01-12 17:44:10 -08:00
cli Fix timing test error when rebalancing 2017-02-04 05:59:15 +00:00
common Merge "Warn about using EC with isa_l_rs_vand and nparity >= 5" 2017-01-31 14:05:54 +00:00
container Replace 'assertTrue(a not in b)' with 'assertNotIn(a, b)' 2016-12-12 16:23:09 +07:00
obj Merge "Shuffle disks and parts in reconstructor" 2017-02-01 07:15:50 +00:00
proxy Merge "Let users know entity size in 416 responses" 2016-12-05 19:06:45 +00:00
test_locale monkeypatch thread for keystoneclient 2015-11-03 16:36:19 +01:00
__init__.py Fix ZeroDivisionError in reconstructor.stats_line 2016-11-07 18:19:20 -08:00
helpers.py Refactor tests and add tests 2016-06-15 16:36:25 +01:00