Return-Path: X-Original-To: apmail-quarks-dev-archive@minotaur.apache.org Delivered-To: apmail-quarks-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 C87B61916F for ; Thu, 14 Apr 2016 01:44:27 +0000 (UTC) Received: (qmail 9059 invoked by uid 500); 14 Apr 2016 01:44:27 -0000 Delivered-To: apmail-quarks-dev-archive@quarks.apache.org Received: (qmail 9031 invoked by uid 500); 14 Apr 2016 01:44:27 -0000 Mailing-List: contact dev-help@quarks.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@quarks.incubator.apache.org Delivered-To: mailing list dev@quarks.incubator.apache.org Received: (qmail 9020 invoked by uid 99); 14 Apr 2016 01:44:27 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2016 01:44:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 54E1AC064A for ; Thu, 14 Apr 2016 01:44:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.021 X-Spam-Level: X-Spam-Status: No, score=-4.021 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id MoFMKDXtwWQv for ; Thu, 14 Apr 2016 01:44:26 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with SMTP id 3AE465FB09 for ; Thu, 14 Apr 2016 01:44:26 +0000 (UTC) Received: (qmail 8949 invoked by uid 99); 14 Apr 2016 01:44:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2016 01:44:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 691542C14E1 for ; Thu, 14 Apr 2016 01:44:25 +0000 (UTC) Date: Thu, 14 Apr 2016 01:44:25 +0000 (UTC) From: "Dale LaBossiere (JIRA)" To: dev@quarks.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (QUARKS-143) bogus test behavior with DevelopmentProvider MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Dale LaBossiere created QUARKS-143: -------------------------------------- Summary: bogus test behavior with DevelopmentProvider Key: QUARKS-143 URL: https://issues.apache.org/jira/browse/QUARKS-143 Project: Quarks Issue Type: Bug Components: Runtime Reporter: Dale LaBossiere I'm perplexed... if you add the following test to TStreamTest and run the DirectTStreamTest it works. If you run the DevelopmentTStreamTest it fails as noted in the commentary. @Test public void testBrokenDevelopmentProvider() throws Exception { Topology t = newTopology(); // For some reason, the following sequence fails with no content // received by the tester when run with the DevelopmentProvider. // // Commenting out either the s.filter() OR the s.peek() makes it work. // OR putting the peek() before the filter() statement works!??? // // This runs fine with the DirectProvider. // // I understand that given the structure of this test, the test // could reach completion before either the filter or peek was actually // called for the second tuple but that doesn't mean the tester // should receive/report no tuples. (in practice, the full println // output is present when it fails). TStream s = t.strings("a", "b"); s.filter(tuple -> { System.out.println("filter tuple: "+tuple); return true; }); s.peek(tuple -> System.out.println("peek tuple: "+tuple)); Condition tc = t.getTester().tupleCount(s, 2); Condition> contents = t.getTester().streamContents(s, "a", "b"); complete(t, tc); assertTrue("contents "+contents.getResult(), contents.valid()); } -- This message was sent by Atlassian JIRA (v6.3.4#6332)