# HG changeset patch # User am@osimis.io # Date 1535704275 -7200 # Node ID 7d39adee9f88c764809a7adc2951436bd84e06d7 # Parent 1ff0d830bb874c78278f4d8654322d7ca8c4df13 don't repeat statistics test that is lengthy diff -r 1ff0d830bb87 -r 7d39adee9f88 PerfsDb/Tests/Statistics.py --- 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