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:
Mark Paluch
2020-10-21 15:39:42 +02:00
committed by Christoph Strobl
parent 7f9de716c8
commit 8e4f796309
2 changed files with 6 additions and 4 deletions

View File

@@ -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