Skip to content

Commit 79278c6

Browse files
committed
Tests: give ScanResume a pattern
1 parent 71a0f43 commit 79278c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

StackExchange.Redis.Tests/Scans.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void ScanResume()
104104
int snapOffset = 0, snapPageSize = 0;
105105

106106
i = 0;
107-
var seq = server.Keys(DB, pageSize: 15);
107+
var seq = server.Keys(DB, "ScanResume:*", pageSize: 15);
108108
foreach (var key in seq)
109109
{
110110
if (i == 57)
@@ -124,7 +124,7 @@ public void ScanResume()
124124
Assert.Equal(11, snapOffset);
125125
Assert.Equal(15, snapPageSize);
126126

127-
seq = server.Keys(DB, pageSize: 15, cursor: snapCursor, pageOffset: snapOffset);
127+
seq = server.Keys(DB, "ScanResume:*", pageSize: 15, cursor: snapCursor, pageOffset: snapOffset);
128128
var seqCur = (IScanningCursor)seq;
129129
Assert.Equal(snapCursor, seqCur.Cursor);
130130
Assert.Equal(snapPageSize, seqCur.PageSize);

0 commit comments

Comments
 (0)