usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toddn...@apache.org
Subject usergrid git commit: Fixes the 2.5 checks in the test
Date Tue, 17 Nov 2015 18:19:08 GMT
Repository: usergrid
Updated Branches:
  refs/heads/release a33f616be -> 8ba0ef01a


Fixes the 2.5 checks in the test


Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/8ba0ef01
Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/8ba0ef01
Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/8ba0ef01

Branch: refs/heads/release
Commit: 8ba0ef01a90ac1352ea56203f07c042d73e24306
Parents: a33f616
Author: Todd Nine <tnine@apigee.com>
Authored: Tue Nov 17 11:19:06 2015 -0700
Committer: Todd Nine <tnine@apigee.com>
Committed: Tue Nov 17 11:19:06 2015 -0700

----------------------------------------------------------------------
 .../serialization/impl/shard/NodeShardAllocationTest.java      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/8ba0ef01/stack/corepersistence/graph/src/test/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/NodeShardAllocationTest.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/graph/src/test/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/NodeShardAllocationTest.java
b/stack/corepersistence/graph/src/test/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/NodeShardAllocationTest.java
index bc364cc..6671dec 100644
--- a/stack/corepersistence/graph/src/test/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/NodeShardAllocationTest.java
+++ b/stack/corepersistence/graph/src/test/java/org/apache/usergrid/persistence/graph/serialization/impl/shard/NodeShardAllocationTest.java
@@ -84,7 +84,7 @@ public class NodeShardAllocationTest {
 
         final long timeout = 30000;
         when( graphFig.getShardCacheTimeout() ).thenReturn( timeout );
-        when( graphFig.getShardMinDelta() ).thenReturn( timeout * 2 );
+        when( graphFig.getShardMinDelta() ).thenReturn( ( long ) (timeout * 2.5) );
     }
 
 
@@ -111,7 +111,7 @@ public class NodeShardAllocationTest {
 
         when( timeService.getCurrentTime() ).thenReturn( timeservicetime );
 
-        final long expected = timeservicetime - 2 * graphFig.getShardCacheTimeout();
+        final long expected = ( long ) (timeservicetime - 2.5 * graphFig.getShardCacheTimeout());
 
         final long returned = approximation.getMinTime();
 
@@ -722,7 +722,7 @@ public class NodeShardAllocationTest {
 
         //now test something that passes.
 
-        final long minDelta = cacheTimeout * 2;
+        final long minDelta = ( long ) (cacheTimeout * 2.5);
 
         when( graphFig.getShardMinDelta() ).thenReturn( minDelta );
 


Mime
View raw message