From: danielhanrahan Date: Thu, 30 Mar 2023 14:10:55 +0000 (+0100) Subject: Fix assertion in integration-test performance tests X-Git-Tag: 3.3.0~32 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=2f8c7e8844b9ea68247ed12f02d1d6b8b8792857;p=cps.git Fix assertion in integration-test performance tests Issue-ID: CPS-1587 Signed-off-by: danielhanrahan Change-Id: I044e4c81ce9972bb7979b494496d74beb733c5ed --- diff --git a/integration-test/src/test/groovy/org/onap/cps/integration/performance/base/PerfTestBase.groovy b/integration-test/src/test/groovy/org/onap/cps/integration/performance/base/PerfTestBase.groovy index 25cd704311..4afdabe924 100644 --- a/integration-test/src/test/groovy/org/onap/cps/integration/performance/base/PerfTestBase.groovy +++ b/integration-test/src/test/groovy/org/onap/cps/integration/performance/base/PerfTestBase.groovy @@ -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 } }