|
28 | 28 | import static org.springframework.data.redis.connection.RedisGeoCommands.GeoSearchStoreCommandArgs.*; |
29 | 29 | import static org.springframework.data.redis.core.ScanOptions.*; |
30 | 30 |
|
| 31 | +import java.nio.charset.StandardCharsets; |
31 | 32 | import java.time.Duration; |
32 | 33 | import java.time.Instant; |
33 | 34 | import java.time.temporal.ChronoUnit; |
34 | 35 | import java.util.*; |
35 | 36 | import java.util.concurrent.BlockingDeque; |
36 | 37 | import java.util.concurrent.LinkedBlockingDeque; |
37 | 38 | import java.util.concurrent.TimeUnit; |
| 39 | +import java.util.stream.IntStream; |
38 | 40 |
|
39 | 41 | import org.assertj.core.data.Offset; |
40 | 42 | import org.junit.AssumptionViolatedException; |
@@ -2661,10 +2663,11 @@ private static List<String> toList(Cursor<byte[]> cursor) { |
2661 | 2663 | } |
2662 | 2664 |
|
2663 | 2665 | @Test // DATAREDIS-417 |
2664 | | - @DisabledOnOs(value = MAC, architectures = "aarch64") |
2665 | | - public void scanShouldReadEntireValueRangeWhenIdividualScanIterationsReturnEmptyCollection() { |
| 2666 | + public void scanShouldReadEntireValueRangeWhenIndividualScanIterationsReturnEmptyCollection() { |
2666 | 2667 |
|
2667 | | - connection.execute("DEBUG", "POPULATE".getBytes(), "100".getBytes()); |
| 2668 | + byteConnection.openPipeline(); |
| 2669 | + IntStream.range(0, 100).forEach(it -> byteConnection.stringCommands().set("key:%s".formatted(it).getBytes(StandardCharsets.UTF_8), "data".getBytes(StandardCharsets.UTF_8))); |
| 2670 | + byteConnection.closePipeline(); |
2668 | 2671 |
|
2669 | 2672 | Cursor<byte[]> cursor = connection.scan(ScanOptions.scanOptions().match("key*9").count(10).build()); |
2670 | 2673 |
|
|
0 commit comments