Fix the tests that failing irregularly in groovy pipeline 43/140843/2
authorhalil.cakal <halil.cakal@est.tech>
Tue, 6 May 2025 12:40:46 +0000 (13:40 +0100)
committerhalil.cakal <halil.cakal@est.tech>
Tue, 6 May 2025 16:01:47 +0000 (17:01 +0100)
commit6dbed125ad1e61bab03572993db54c5a78662316
tree25a0cca18a6d51f2b7faa2483745a0aea6cc9034
parent0fd779c3ff7e62527375e0cb318e98f892f1bfa6
Fix the tests that failing irregularly in groovy pipeline

- Don't check if the key is present in the map anymore instead keep
  looking for if the key deleted after TTL period
- Optimize the test by reducing the max wait time from 10 seconds to 1
  second

Issue-ID: CPS-2798

Change-Id: Ibbd40e682c28fa0c52da3f07d3687927fa42aa02
Signed-off-by: halil.cakal <halil.cakal@est.tech>
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/inventory/sync/SynchronizationCacheConfigSpec.groovy