Explicitly set rsync config values for better testing
This commit is contained in:
parent
5659fadb6c
commit
338f33a26d
@ -65,6 +65,9 @@ class SwiftStorageContextTests(CharmTestCase):
|
|||||||
self.test_config.set('object-server-threads-per-disk', '3')
|
self.test_config.set('object-server-threads-per-disk', '3')
|
||||||
self.test_config.set('worker-multiplier', '3')
|
self.test_config.set('worker-multiplier', '3')
|
||||||
self.test_config.set('object-replicator-concurrency', '3')
|
self.test_config.set('object-replicator-concurrency', '3')
|
||||||
|
self.test_config.set('account-max-connections', '10')
|
||||||
|
self.test_config.set('container-max-connections', '10')
|
||||||
|
self.test_config.set('object-max-connections', '10')
|
||||||
num_workers = psutil.NUM_CPUS * 3
|
num_workers = psutil.NUM_CPUS * 3
|
||||||
ctxt = swift_context.SwiftStorageServerContext()
|
ctxt = swift_context.SwiftStorageServerContext()
|
||||||
result = ctxt()
|
result = ctxt()
|
||||||
@ -76,8 +79,8 @@ class SwiftStorageContextTests(CharmTestCase):
|
|||||||
'object_server_threads_per_disk': '3',
|
'object_server_threads_per_disk': '3',
|
||||||
'workers': str(num_workers),
|
'workers': str(num_workers),
|
||||||
'object_replicator_concurrency': '3',
|
'object_replicator_concurrency': '3',
|
||||||
'account_max_connections': 2,
|
'account_max_connections': '10',
|
||||||
'container_max_connections': 2,
|
'container_max_connections': '10',
|
||||||
'object_max_connections': 2,
|
'object_max_connections': '10',
|
||||||
}
|
}
|
||||||
self.assertEquals(ex, result)
|
self.assertEquals(ex, result)
|
||||||
|
Loading…
Reference in New Issue
Block a user