changeset 166:7d39adee9f88

don't repeat statistics test that is lengthy
author am@osimis.io
date Fri, 31 Aug 2018 10:31:15 +0200
parents 1ff0d830bb87
children 3b1bfbe960c9
files PerfsDb/Tests/Statistics.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/PerfsDb/Tests/Statistics.py	Tue Aug 21 15:20:45 2018 +0200
+++ b/PerfsDb/Tests/Statistics.py	Fri Aug 31 10:31:15 2018 +0200
@@ -11,5 +11,9 @@
     def test(self):
         self._statistics = self._orthanc.getJson(relativeUrl="statistics")
 
+    def beforeAll(self):
+        # on large DB, statistics may be very  slow so we don't want to repeat it 30 times !
+        self.repeatCount = max(self.repeatCount / 10, 1)
+
     def afterAll(self):
         print("Statistics:" + json.dumps(self._statistics))
\ No newline at end of file