Fix producer unit tests occasionally failing
When these tests were implemented they were setup to test shards. The problem is that the range used in the tests ends at 4094, but there are 4096 shards in total. This means that if a zone is created on shard 4095 it is always ignored in the tests. Change-Id: I29cf34b5120cca2e8b14c9c9f8ffa7c6e58da5b0
This commit is contained in:
parent
1912f7015e
commit
923f29664e
@ -184,7 +184,7 @@ class ZoneManagerTaskFixture(fixtures.Fixture):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.task = self._task_cls()
|
||||
self.task.on_partition_change(range(0, 4095), None, None)
|
||||
self.task.on_partition_change(range(0, 4096), None, None)
|
||||
|
||||
|
||||
# Logging handlers imported from Nova.
|
||||
|
Loading…
Reference in New Issue
Block a user