This is an automated email from the ASF dual-hosted git repository.
ringles pushed a commit to branch
GEODE-9892-Create-Infrastructure-for-Redis-Lists
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to
refs/heads/GEODE-9892-Create-Infrastructure-for-Redis-Lists by this push:
new f60a898 Fix var names in test
f60a898 is described below
commit f60a898902f522e7722b0db53786def153207441
Author: Ray Ingles <[email protected]>
AuthorDate: Wed Jan 12 15:19:17 2022 -0500
Fix var names in test
---
.../commands/executor/list/AbstractListsIntegrationTest.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git
a/geode-for-redis/src/integrationTest/java/org/apache/geode/redis/internal/commands/executor/list/AbstractListsIntegrationTest.java
b/geode-for-redis/src/integrationTest/java/org/apache/geode/redis/internal/commands/executor/list/AbstractListsIntegrationTest.java
index 06dda88..f3a825a 100755
---
a/geode-for-redis/src/integrationTest/java/org/apache/geode/redis/internal/commands/executor/list/AbstractListsIntegrationTest.java
+++
b/geode-for-redis/src/integrationTest/java/org/apache/geode/redis/internal/commands/executor/list/AbstractListsIntegrationTest.java
@@ -56,22 +56,22 @@ public abstract class AbstractListsIntegrationTest
implements RedisIntegrationTe
@Test
public void lpushErrors_withExistingKey_ofWrongType() {
- String[] setValue = new String[1];
- setValue[0] = "set value that should never get added";
+ String[] elementValue = new String[1];
+ elementValue[0] = "list element value that should never get added";
jedis.set(KEY, PREEXISTING_VALUE);
- assertThatThrownBy(() -> jedis.lpush(KEY, setValue))
+ assertThatThrownBy(() -> jedis.lpush(KEY, elementValue))
.hasMessageContaining("Operation against a key holding the wrong kind
of value");
}
@Test
public void
lpush_withExistingKey_ofWrongType_shouldNotOverWriteExistingKey() {
- String[] setValue = new String[1];
- setValue[0] = "set value that should never get added";
+ String[] elementValue = new String[1];
+ elementValue[0] = "set value that should never get added";
jedis.set(KEY, PREEXISTING_VALUE);
- assertThatThrownBy(() -> jedis.lpush(KEY,
setValue)).isInstanceOf(JedisDataException.class);
+ assertThatThrownBy(() -> jedis.lpush(KEY,
elementValue)).isInstanceOf(JedisDataException.class);
String result = jedis.get(KEY);