Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 017F31830F for ; Sat, 21 Nov 2015 14:24:53 +0000 (UTC) Received: (qmail 6625 invoked by uid 500); 21 Nov 2015 14:24:52 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 6572 invoked by uid 500); 21 Nov 2015 14:24:52 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 6562 invoked by uid 99); 21 Nov 2015 14:24:52 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Nov 2015 14:24:52 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5CFF9DFE01; Sat, 21 Nov 2015 14:24:52 +0000 (UTC) From: ravihansa3000 To: dev@stratos.apache.org Reply-To: dev@stratos.apache.org References: In-Reply-To: Subject: [GitHub] stratos pull request: implementing STRATOS-1628 Content-Type: text/plain Message-Id: <20151121142452.5CFF9DFE01@git1-us-west.apache.org> Date: Sat, 21 Nov 2015 14:24:52 +0000 (UTC) Github user ravihansa3000 commented on a diff in the pull request: https://github.com/apache/stratos/pull/492#discussion_r45546634 --- Diff: products/stratos/modules/integration/test-common/src/main/java/org/apache/stratos/integration/common/extensions/StratosServerExtension.java --- @@ -107,11 +106,10 @@ private void startStratosServer(int activeMQDynamicPort) throws AutomationFramew long time3 = System.currentTimeMillis(); String carbonHome = stratosTestServerManager.startServer(); assertNotNull(carbonHome, "CARBON_HOME is null"); - while (!serverStarted()) { - log.info("Waiting for topology to be initialized..."); - Thread.sleep(5000); - } - while (!mockServiceStarted()) { + + // checking whether mock iaas component is ready. If it is ready, all the components are activated. + mockIaasApiClient = new MockIaasApiClient(stratosTestServerManager.getWebAppURL() + MOCK_IAAS_API_EP); + while (!StratosServerExtension.mockIaasApiClient.isMockIaaSReady()) { log.info("Waiting for mock service to be initialized..."); Thread.sleep(1000); --- End diff -- We need the loop but better to wait ~50s before going into the loop --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---