diff options
author | Piotr Jaszczyk <piotr.jaszczyk@nokia.com> | 2018-07-31 09:28:29 +0200 |
---|---|---|
committer | Piotr Jaszczyk <piotr.jaszczyk@nokia.com> | 2018-08-03 10:49:23 +0200 |
commit | 1f54619b7e8f22bf1b0474c5ec6437f9716138cd (patch) | |
tree | 1020a8df4b9d79b3467500d087118c1ea0d0c90a /hv-collector-ct | |
parent | d76905b9c98ec32f17bb9568ff80c04068aa213e (diff) |
Fix NPE when getting Consul configuration
No initial value for AtomicReference was provided hence we had a little
race condition.
Retry when consul returns error.
Change-Id: Ie38ca7fbf445123e98ee94703eba501bb5233fab
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601
Diffstat (limited to 'hv-collector-ct')
-rw-r--r-- | hv-collector-ct/src/test/kotlin/org/onap/dcae/collectors/veshv/tests/fakes/metrics.kt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hv-collector-ct/src/test/kotlin/org/onap/dcae/collectors/veshv/tests/fakes/metrics.kt b/hv-collector-ct/src/test/kotlin/org/onap/dcae/collectors/veshv/tests/fakes/metrics.kt index cfc44bcd..aa3fdc39 100644 --- a/hv-collector-ct/src/test/kotlin/org/onap/dcae/collectors/veshv/tests/fakes/metrics.kt +++ b/hv-collector-ct/src/test/kotlin/org/onap/dcae/collectors/veshv/tests/fakes/metrics.kt @@ -34,5 +34,4 @@ class FakeMetrics: Metrics { override fun notifyMessageSent(topic: String) { } - }
\ No newline at end of file |