You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@edgent.apache.org by dl...@apache.org on 2017/11/02 03:21:35 UTC

[24/50] [abbrv] incubator-edgent git commit: fix WindowTest for sure this time

fix WindowTest for sure this time

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

Branch: refs/heads/develop
Commit: ec48aadafbfbb22030f168b769749d4f5ad3bc31
Parents: 458471d
Author: Dale LaBossiere <dl...@us.ibm.com>
Authored: Fri Oct 27 09:42:05 2017 -0400
Committer: Dale LaBossiere <dl...@us.ibm.com>
Committed: Fri Oct 27 09:42:05 2017 -0400

----------------------------------------------------------------------
 .../src/test/java/org/apache/edgent/test/window/WindowTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-edgent/blob/ec48aada/api/window/src/test/java/org/apache/edgent/test/window/WindowTest.java
----------------------------------------------------------------------
diff --git a/api/window/src/test/java/org/apache/edgent/test/window/WindowTest.java b/api/window/src/test/java/org/apache/edgent/test/window/WindowTest.java
index 92002f7..98f04ea 100644
--- a/api/window/src/test/java/org/apache/edgent/test/window/WindowTest.java
+++ b/api/window/src/test/java/org/apache/edgent/test/window/WindowTest.java
@@ -507,7 +507,7 @@ public class WindowTest {
     public static boolean withinToleranceAmt(double expected, Double actual, double toleranceAmt) {
         double lowBound = expected - toleranceAmt;
         double highBound = expected + toleranceAmt;
-        return (actual < highBound && actual > lowBound);
+        return (actual <= highBound && actual >= lowBound);
     }
 
 }