geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dschnei...@apache.org
Subject [04/50] [abbrv] incubator-geode git commit: GEODE-441: fix broken test loop condition and remove index
Date Mon, 26 Oct 2015 18:28:27 GMT
GEODE-441: fix broken test loop condition and remove index


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

Branch: refs/heads/develop
Commit: 17d00616fdace860ee8ea485f21aebb3a7bc19d4
Parents: f5a44dc
Author: Darrel Schneider <dschneider@pivotal.io>
Authored: Mon Oct 19 16:28:29 2015 -0700
Committer: Darrel Schneider <dschneider@pivotal.io>
Committed: Mon Oct 19 16:29:58 2015 -0700

----------------------------------------------------------------------
 .../java/com/gemstone/gemfire/redis/SortedSetsJUnitTest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/17d00616/gemfire-core/src/test/java/com/gemstone/gemfire/redis/SortedSetsJUnitTest.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/test/java/com/gemstone/gemfire/redis/SortedSetsJUnitTest.java
b/gemfire-core/src/test/java/com/gemstone/gemfire/redis/SortedSetsJUnitTest.java
index 4adfe07..0650406 100755
--- a/gemfire-core/src/test/java/com/gemstone/gemfire/redis/SortedSetsJUnitTest.java
+++ b/gemfire-core/src/test/java/com/gemstone/gemfire/redis/SortedSetsJUnitTest.java
@@ -263,8 +263,8 @@ public class SortedSetsJUnitTest {
       }
       jedis.zadd(key, scoreMembers);
       Collections.sort(expected, new EntryCmp());
-      for (int i = expected.size(); i <= 0; i--) {
-        Entry<String, Double> remEntry = expected.remove(i);
+      for (int i = expected.size(); i > 0; i--) {
+        Entry<String, Double> remEntry = expected.remove(i-1);
         String rem = remEntry.getKey();
         Double val = remEntry.getValue();
         assertEquals(val, jedis.zscore(key, rem));


Mime
View raw message