DATAREDIS-1234 - Consistently return List<Long> from LPOS command.
We now convert pipeline/transaction results to List<Long> to ensure a consistent return type. Original Pull Request: #570
This commit is contained in:
committed by
Christoph Strobl
parent
7f9de716c8
commit
8e4f796309
@@ -1501,9 +1501,9 @@ public abstract class AbstractConnectionIntegrationTests {
|
||||
public void lPos() {
|
||||
|
||||
actual.add(connection.rPush("mylist", "a", "b", "c", "1", "2", "3", "c", "c"));
|
||||
actual.add(connection.lPos("mylist", "c"));
|
||||
actual.add(connection.lPos("mylist", "c", null, null));
|
||||
|
||||
assertThat((Long) getResults().get(1)).isEqualTo(2);
|
||||
assertThat((List<Long>) getResults().get(1)).containsOnly(2L);
|
||||
}
|
||||
|
||||
@Test // DATAREDIS-1196
|
||||
|
||||
Reference in New Issue
Block a user