Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-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 E9B661851C for ; Thu, 5 Nov 2015 15:01:33 +0000 (UTC) Received: (qmail 68574 invoked by uid 500); 5 Nov 2015 15:01:33 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 68543 invoked by uid 500); 5 Nov 2015 15:01:33 -0000 Mailing-List: contact dev-help@brooklyn.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.incubator.apache.org Delivered-To: mailing list dev@brooklyn.incubator.apache.org Received: (qmail 68525 invoked by uid 99); 5 Nov 2015 15:01:33 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2015 15:01:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 2E355CC156 for ; Thu, 5 Nov 2015 15:01:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.991 X-Spam-Level: X-Spam-Status: No, score=0.991 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 9XcrH_80NIjW for ; Thu, 5 Nov 2015 15:01:18 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 36CE9429AA for ; Thu, 5 Nov 2015 15:01:18 +0000 (UTC) Received: (qmail 68279 invoked by uid 99); 5 Nov 2015 15:01:17 -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; Thu, 05 Nov 2015 15:01:17 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 57358E3926; Thu, 5 Nov 2015 15:01:17 +0000 (UTC) From: neykov To: dev@brooklyn.incubator.apache.org Reply-To: dev@brooklyn.incubator.apache.org References: In-Reply-To: Subject: [GitHub] incubator-brooklyn pull request: Add EntityAsserts and HttpUtils. Content-Type: text/plain Message-Id: <20151105150117.57358E3926@git1-us-west.apache.org> Date: Thu, 5 Nov 2015 15:01:17 +0000 (UTC) Github user neykov commented on the pull request: https://github.com/apache/incubator-brooklyn/pull/994#issuecomment-154085081 Moving them to integration will address the immediate problem so +1. At some point we will start running the integration tests on apache infrastructure (read - **busy**, we already do, but they are failing for a number of other reasons), so the same issue will crop up - but can deal with it then. --- The code could be restructured such that it doesn't use waits at all: * tests which need non-running server be put in a separate test, which doesn't start the server by default * no sleep on server start, if the server doesn't come up immediately, then always use `eventuallySucceeds` * for the cases where there's `xxxxAfter(5); succeedsEventually`, could be changed to `failsNow; task = succeedsEventuallyInAnotherTask; startNow(); task.get()`. What could be a problem here is that connections to closed ports take a long time to timeout? * The only place where a fixed wait is really needed is tests which expect to fail and have a timeout, those go in integration. All of the above said, I am perfectly fine with moving all tests to integration as is. --- 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. ---