Merge "Fix PASS/FAIL reporting in performance test summary"
authorLee Anjella Macabuhay <lee.anjella.macabuhay@est.tech>
Tue, 14 Nov 2023 15:06:28 +0000 (15:06 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 14 Nov 2023 15:06:28 +0000 (15:06 +0000)
integration-test/src/test/groovy/org/onap/cps/integration/performance/base/PerfTestBase.groovy

index b0a105c..a96d7f6 100644 (file)
@@ -55,7 +55,7 @@ abstract class PerfTestBase extends CpsIntegrationSpecBase {
     abstract def createInitialData()
 
     def recordAndAssertResourceUsage(String shortTitle, double thresholdInSec, double recordedTimeInSec, memoryLimit, memoryUsageInMB) {
-        def pass = recordedTimeInSec <= thresholdInSec
+        def pass = recordedTimeInSec <= thresholdInSec && memoryUsageInMB <= memoryLimit
         if (shortTitle.length() > 40) {
             shortTitle = shortTitle.substring(0, 40)
         }