Commit b833c90e authored by Jérome Perrin's avatar Jérome Perrin

software/cloudooo/test: make test more robust

Sometimes backends process less than 15% of requests. For this test to
test that the requests are distributed on all backends, testing that
each backend process at least one request should be enough.
parent 26d8b85a
......@@ -307,8 +307,8 @@ class TestLibreOfficeCluster(CloudOooTestCase):
# ideally there should be 25% of requests on each backend, because we use
# round robin scheduling, but it can happen that some backend take longer
# to start, so we are tolerant here and just check that each backend
# process at least 15% of requests.
self.assertGreater(total_hrsp_2xx[backend], 15)
# process at least one request.
self.assertGreater(total_hrsp_2xx[backend], 0)
# no errors
total_eresp = {
line['svname']: int(line['eresp'] or 0)
......
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