File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
StackExchange.Redis.Tests Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -107,17 +107,19 @@ public void ScanResume()
107
107
var seq = server . Keys ( DB , pageSize : 15 ) ;
108
108
foreach ( var key in seq )
109
109
{
110
- i ++ ;
111
- if ( i < 57 ) continue ;
112
110
if ( i == 57 )
113
111
{
114
112
snapCursor = ( ( IScanningCursor ) seq ) . Cursor ;
115
113
snapOffset = ( ( IScanningCursor ) seq ) . PageOffset ;
116
114
snapPageSize = ( ( IScanningCursor ) seq ) . PageSize ;
117
115
}
118
- expected . Add ( ( string ) key ) ;
116
+ if ( i >= 57 )
117
+ {
118
+ expected . Add ( ( string ) key ) ;
119
+ }
120
+ i ++ ;
119
121
}
120
- Assert . NotEqual ( 43 , expected . Count ) ;
122
+ Assert . Equal ( 43 , expected . Count ) ;
121
123
Assert . NotEqual ( 0 , snapCursor ) ;
122
124
Assert . Equal ( 11 , snapOffset ) ;
123
125
Assert . Equal ( 15 , snapPageSize ) ;
@@ -155,7 +157,7 @@ public void ScanResume()
155
157
count ++ ;
156
158
}
157
159
Assert . Empty ( expected ) ;
158
- Assert . Equal ( 44 , count ) ; // expect the initial item to be repeated
160
+ Assert . Equal ( 43 , count ) ;
159
161
}
160
162
}
161
163
You can’t perform that action at this time.
0 commit comments