Fix assertion in integration-test performance tests 46/133946/1
authordanielhanrahan <daniel.hanrahan@est.tech>
Thu, 30 Mar 2023 14:10:55 +0000 (15:10 +0100)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Thu, 30 Mar 2023 14:19:15 +0000 (15:19 +0100)
Issue-ID: CPS-1587
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I044e4c81ce9972bb7979b494496d74beb733c5ed

integration-test/src/test/groovy/org/onap/cps/integration/performance/base/PerfTestBase.groovy

index 25cd704..4afdabe 100644 (file)
@@ -64,7 +64,7 @@ abstract class PerfTestBase extends CpsIntegrationSpecBase {
         def record = String.format('%2d.%-40s limit%,7d took %,7d ms ', PERFORMANCE_RECORD.size() + 1, shortTitle, thresholdInMs, recordedTimeInMs)
         record += pass ? 'PASS' : 'FAIL'
         PERFORMANCE_RECORD.add(record)
-        assert recordedTimeInMs != thresholdInMs
+        assert recordedTimeInMs <= thresholdInMs
         return true
     }
 }