cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject git commit: Fix BSD test
Date Fri, 06 Apr 2012 15:38:23 GMT
Updated Branches:
  refs/heads/trunk d76458e4a -> 5f1e66a15


Fix BSD test


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/5f1e66a1
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/5f1e66a1
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/5f1e66a1

Branch: refs/heads/trunk
Commit: 5f1e66a15cd8392ba1042445ce0189e0b9b0de48
Parents: d76458e
Author: Brandon Williams <brandonwilliams@apache.org>
Authored: Fri Apr 6 10:38:16 2012 -0500
Committer: Brandon Williams <brandonwilliams@apache.org>
Committed: Fri Apr 6 10:38:16 2012 -0500

----------------------------------------------------------------------
 .../cassandra/utils/BoundedStatsDequeTest.java     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/5f1e66a1/test/unit/org/apache/cassandra/utils/BoundedStatsDequeTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/utils/BoundedStatsDequeTest.java b/test/unit/org/apache/cassandra/utils/BoundedStatsDequeTest.java
index af540cc..33933d6 100644
--- a/test/unit/org/apache/cassandra/utils/BoundedStatsDequeTest.java
+++ b/test/unit/org/apache/cassandra/utils/BoundedStatsDequeTest.java
@@ -39,7 +39,7 @@ public class BoundedStatsDequeTest
         //check the values for an empty result
         assertEquals(0, bsd.size());
         assertEquals(0, bsd.sum(), 0.001d);
-        assertEquals(Double.NaN, bsd.mean(), 0.001d);
+        assertEquals(0, bsd.mean(), 0.001d)
 
         bsd.add(1d); //this one falls out, over limit
         bsd.add(2d);


Mime
View raw message