summaryrefslogtreecommitdiffstats
path: root/context/context-test-utils
diff options
context:
space:
mode:
authorramverma <ram.krishna.verma@ericsson.com>2018-10-05 15:36:11 +0100
committerramverma <ram.krishna.verma@ericsson.com>2018-10-05 15:36:46 +0100
commit9cedbd41c0ee3bade89de5d2e1e822cc4e9a36e7 (patch)
tree8baab01617bb16fe85e5bfd59d2ab132089e82f3 /context/context-test-utils
parente06e7f5f3b81d613fb79ced173caffc18ddf3e3d (diff)
Fix sonar bugs in apex-pdp
Change-Id: I1ab9b9d9b0b8d1655301959d7d6b9ab3cc87eba3 Issue-ID: POLICY-954 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
Diffstat (limited to 'context/context-test-utils')
-rw-r--r--context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/utils/ZooKeeperServerServiceProvider.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/utils/ZooKeeperServerServiceProvider.java b/context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/utils/ZooKeeperServerServiceProvider.java
index 1c28388ad..1949769a6 100644
--- a/context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/utils/ZooKeeperServerServiceProvider.java
+++ b/context/context-test-utils/src/main/java/org/onap/policy/apex/context/test/utils/ZooKeeperServerServiceProvider.java
@@ -89,6 +89,7 @@ public class ZooKeeperServerServiceProvider {
catch (InterruptedException | IOException ie) {
String message = "Zookeeper server start failed";
LOGGER.warn(message, ie);
+ Thread.currentThread().interrupt();
throw new ApexException(message, ie);
}