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:20 UTC
[09/50] [abbrv] incubator-edgent git commit: fix previous
PlumbingTest change
fix previous PlumbingTest change
Project: http://git-wip-us.apache.org/repos/asf/incubator-edgent/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-edgent/commit/fcfaf778
Tree: http://git-wip-us.apache.org/repos/asf/incubator-edgent/tree/fcfaf778
Diff: http://git-wip-us.apache.org/repos/asf/incubator-edgent/diff/fcfaf778
Branch: refs/heads/develop
Commit: fcfaf7785368ac1465a62e96f4d9abafb1c409a5
Parents: 56cb7a4
Author: Dale LaBossiere <dl...@us.ibm.com>
Authored: Tue Oct 24 15:42:12 2017 -0400
Committer: Dale LaBossiere <dl...@us.ibm.com>
Committed: Tue Oct 24 15:42:12 2017 -0400
----------------------------------------------------------------------
.../test/java/org/apache/edgent/test/topology/PlumbingTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-edgent/blob/fcfaf778/api/topology/src/test/java/org/apache/edgent/test/topology/PlumbingTest.java
----------------------------------------------------------------------
diff --git a/api/topology/src/test/java/org/apache/edgent/test/topology/PlumbingTest.java b/api/topology/src/test/java/org/apache/edgent/test/topology/PlumbingTest.java
index 48a498b..6fe2e2a 100644
--- a/api/topology/src/test/java/org/apache/edgent/test/topology/PlumbingTest.java
+++ b/api/topology/src/test/java/org/apache/edgent/test/topology/PlumbingTest.java
@@ -615,7 +615,7 @@ public abstract class PlumbingTest extends TopologyAbstractTest {
// Verify the balancing seemed to work.
// On loaded systems we've seen eCnt:37 oCnt:23. Settle for expEvenCnt +- 15%
- double thresholdCnt = expEvenChCnt * 0.15;
+ int thresholdCnt = (int) (expEvenChCnt * 0.15);
int evenChCnt = 0;
for (int ch = 0; ch < width; ch++) {
assertTrue("ch:"+ch, chCounts[ch].get() != 0);