Salome HOME
Test1967: Update tolerance ratio for moving vs creating.
authorPascal Obry <pascal.obry@edf.fr>
Tue, 19 Dec 2023 14:04:46 +0000 (15:04 +0100)
committerPascal Obry <pascal.obry@edf.fr>
Wed, 20 Dec 2023 18:13:37 +0000 (19:13 +0100)
It was expected that the time to move a point was 1/10 the time
needed to create the sketch. This ratio is just to restrictive
and proved to be wrong as many time we get an assertion error
on some machine:

AssertionError: Time to move point 0.024923065677285194 is greater than expected 0.01865600571036339

We allow for 1/5 of the time now. This is not perfect nor good but
the previous ratio was boggus anyway. Maybe at some point we
will need to rewrite this test for something more stable in time.

src/SketchPlugin/Test/Test1967.py

index a59dfbbb41b0eb1ccc912a2171c7cb144e8c4bba..57570aeadfdd0d8d0d08025628a40f9e7d1a9398 100644 (file)
@@ -27,7 +27,7 @@ from timeit import default_timer as timer
 import math
 
 # convenient ratio of time moving point to time creating sketch
-MOVE_BUILD_RATIO = 0.1
+MOVE_BUILD_RATIO = 0.2
 # tolerance for comparison of reals
 TOLERANCE = 1.e-7