summaryrefslogtreecommitdiffstats
path: root/vnf-sdk-function-test/src/main/java
diff options
context:
space:
mode:
authorMurali-P <murali.p@huawei.com>2017-02-16 10:47:38 +0530
committerMurali-P <murali.p@huawei.com>2017-02-16 10:47:38 +0530
commit06841e7e140a54cea172980690a15787a4145a72 (patch)
tree89934075cce1ca3cc21a2a0f7f17a5c3f995d7d6 /vnf-sdk-function-test/src/main/java
parent884427c640aaa59a24e6645576522c009aebff06 (diff)
Fix Sonar Issue
Resolved:VNFSDK-21 VNF SDK Function test Change-Id: I2e1687d928e26c47798a1fc52d1b34984777c275 Signed-off-by: Murali-P <murali.p@huawei.com>
Diffstat (limited to 'vnf-sdk-function-test/src/main/java')
-rw-r--r--vnf-sdk-function-test/src/main/java/org/openo/vnfsdk/functest/common/ServiceRegistration.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/vnf-sdk-function-test/src/main/java/org/openo/vnfsdk/functest/common/ServiceRegistration.java b/vnf-sdk-function-test/src/main/java/org/openo/vnfsdk/functest/common/ServiceRegistration.java
index d7ed67e..f6cffba 100644
--- a/vnf-sdk-function-test/src/main/java/org/openo/vnfsdk/functest/common/ServiceRegistration.java
+++ b/vnf-sdk-function-test/src/main/java/org/openo/vnfsdk/functest/common/ServiceRegistration.java
@@ -36,11 +36,15 @@ public class ServiceRegistration implements Runnable {
LOG.info("start extsys microservice register");
boolean flag = false;
int retry = 0;
- while(!flag || retry < 1000) {
+
+ while(!flag) {
LOG.info("VNF-SDK function test microservice register.retry:" + retry);
retry++;
flag = MicroserviceBusConsumer.registerService(funcTestEntity);
+ if(retry >= 1000) {
+ flag = true;
+ }
if(flag == false) {
LOG.warn("microservice register failed, sleep 30S and try again.");