From: Tomasz Pietruszkiewicz Date: Tue, 30 Mar 2021 08:23:47 +0000 (+0200) Subject: Fix unstable test X-Git-Tag: 1.7.0^0 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F03%2F120003%2F4;p=dcaegen2%2Fcollectors%2Fhv-ves.git Fix unstable test Change-Id: Ie77e5f64a6c4ca9c21300da1eef19ad5d9f5c393 Issue-ID: DCAEGEN2-2696 Signed-off-by: Tomasz Pietruszkiewicz --- diff --git a/sources/hv-collector-configuration/src/test/kotlin/org/onap/dcae/collectors/veshv/config/impl/test_constants.kt b/sources/hv-collector-configuration/src/test/kotlin/org/onap/dcae/collectors/veshv/config/impl/test_constants.kt index d2b56b66..3e982a10 100644 --- a/sources/hv-collector-configuration/src/test/kotlin/org/onap/dcae/collectors/veshv/config/impl/test_constants.kt +++ b/sources/hv-collector-configuration/src/test/kotlin/org/onap/dcae/collectors/veshv/config/impl/test_constants.kt @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * dcaegen2-collectors-veshv * ================================================================================ - * Copyright (C) 2019 NOKIA + * Copyright (C) 2019-2021 NOKIA * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,5 +59,5 @@ internal val mdc = { mapOf("mdc_key" to "mdc_value") } internal fun retry(iterationCount: Long = 1) = Retry .onlyIf { it.iteration() <= iterationCount } - .fixedBackoff(Duration.ofNanos(1)) + .fixedBackoff(Duration.ofMillis(10))