Commit 8b6cad8c authored by Vincent Pelletier's avatar Vincent Pelletier

Don't be nice to test: it's beter to make them fail early rather than adapt to bogus parameters.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1231 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent cdf18773
......@@ -56,8 +56,7 @@ class StorageTests(unittest.TestCase):
)
self.neo.setupDB()
# too many pending storage nodes requested
if pending_number > storage_number:
pending_number = storage_number
assert pending_number <= storage_number:
storage_processes = self.neo.getStorageProcessList()
start_storage_number = len(storage_processes) - pending_number
# return a tuple of storage processes lists
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment