[Libreoffice-commits] online.git: test/httpwstest.cpp
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Sun Feb 11 18:18:56 UTC 2018
test/httpwstest.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 31130989ed0bd665f31ad1e79613f5b41095706b
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Mon Jan 22 14:36:16 2018 -0500
ut: fix HTTPWSTest::testLoadTortureODP
Change-Id: Ibe3bd98c1cd68da962cc8d93b837597fb7167f45
Reviewed-on: https://gerrit.libreoffice.org/48644
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/test/httpwstest.cpp b/test/httpwstest.cpp
index 286745db..ad0980bb 100644
--- a/test/httpwstest.cpp
+++ b/test/httpwstest.cpp
@@ -568,7 +568,7 @@ void HTTPWSTest::testLoadTortureODP()
// For ODP the view-id is always odd, and we expect not to skip any ids.
const int number_of_loads = thread_count;
- const int exp_sum_view_ids = number_of_loads * number_of_loads; // Odd view-ids only.
+ const int exp_sum_view_ids = number_of_loads * (number_of_loads - 1) / 2; // 0-based view-ids.
CPPUNIT_ASSERT_EQUAL(exp_sum_view_ids, sum_view_ids);
}
More information about the Libreoffice-commits
mailing list