Increase duration for CpsPathUtilPerfTest 85/132985/2
authordanielhanrahan <daniel.hanrahan@est.tech>
Mon, 23 Jan 2023 14:35:44 +0000 (14:35 +0000)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Mon, 23 Jan 2023 15:24:56 +0000 (15:24 +0000)
Issue-ID: CPS-1460
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I47f226c44351513b77b5cbb9b7d91e13f8bf4db6

cps-path-parser/src/test/groovy/org/onap/cps/cpspath/parser/performance/CpsPathUtilPerfTest.groovy

index e5e304b..1dfd194 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  ============LICENSE_START=======================================================
- *  Copyright (C) 2022 Nordix Foundation
+ *  Copyright (C) 2022-2023 Nordix Foundation
  *  ================================================================================
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -35,9 +35,8 @@ class CpsPathUtilPerfTest extends Specification {
                 CpsPathUtil.getNormalizedXpath('//child[@other-leaf=1]/leaf-name[text()="search"]/ancestor::parent')
             }
             stopWatch.stop()
-        then: 'it takes less then 1,100 milliseconds'
-            // In CI this actually takes about 0.3-0.5 sec  which  is approx. 50+ parser executions per millisecond!
-            assert stopWatch.getTotalTimeMillis() < 1100
+        then: 'it takes less then 2100 milliseconds'
+            assert stopWatch.getTotalTimeMillis() < 2100
     }
 
 }