Repository: incubator-edgent
Updated Branches:
  refs/heads/master f64774aa5 -> bf75b0236


skip env sensitive TWindowTest.testTimeBasedBatch in travis-ci runs

Project: http://git-wip-us.apache.org/repos/asf/incubator-edgent/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-edgent/commit/0c593c84
Tree: http://git-wip-us.apache.org/repos/asf/incubator-edgent/tree/0c593c84
Diff: http://git-wip-us.apache.org/repos/asf/incubator-edgent/diff/0c593c84

Branch: refs/heads/master
Commit: 0c593c840d355c64f340602d56c9b34c2af1031c
Parents: 0067ddd
Author: Dale LaBossiere <[email protected]>
Authored: Tue Oct 4 15:08:07 2016 -0400
Committer: Dale LaBossiere <[email protected]>
Committed: Tue Oct 4 15:08:07 2016 -0400

----------------------------------------------------------------------
 .../test/java/org/apache/edgent/test/topology/TWindowTest.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-edgent/blob/0c593c84/api/topology/src/test/java/org/apache/edgent/test/topology/TWindowTest.java
----------------------------------------------------------------------
diff --git 
a/api/topology/src/test/java/org/apache/edgent/test/topology/TWindowTest.java 
b/api/topology/src/test/java/org/apache/edgent/test/topology/TWindowTest.java
index ce66653..3d4e340 100644
--- 
a/api/topology/src/test/java/org/apache/edgent/test/topology/TWindowTest.java
+++ 
b/api/topology/src/test/java/org/apache/edgent/test/topology/TWindowTest.java
@@ -62,6 +62,9 @@ public abstract class TWindowTest extends 
TopologyAbstractTest{
     
     @Test
     public void testTimeBasedBatch() throws Exception{
+      // Timing variances on shared machines can cause this test to fail
+      assumeTrue(!Boolean.getBoolean("edgent.build.ci"));
+      
         Topology top = newTopology();
         TStream<Integer> ints = top.poll(() -> {
             return 1;
@@ -77,7 +80,7 @@ public abstract class TWindowTest extends 
TopologyAbstractTest{
         complete(top, contents);
         System.out.println(contents.getResult());
         for(Integer size : contents.getResult()){
-            assertTrue(size >= 90 && size <= 110);
+            assertTrue("size="+size, size >= 90 && size <= 110);
         }
     }
     

Reply via email to