File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ public async Task CanQueryByRandomIntWithMaxAsync()
309
309
using ( var spy = new SqlLogSpy ( ) )
310
310
{
311
311
var random = new Random ( ) ;
312
- var x = await ( db . Orders . CountAsync ( o => o . OrderId - idMin - 1 < random . Next ( 10 ) ) ) ;
312
+ var x = await ( db . Orders . CountAsync ( o => o . OrderId - idMin < random . Next ( 10 ) ) ) ;
313
313
314
314
Assert . That ( x , Is . GreaterThan ( 0 ) . And . LessThan ( 10 ) ) ;
315
315
// Next requires support of both floor and rand
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ public void CanQueryByRandomIntWithMax()
297
297
using ( var spy = new SqlLogSpy ( ) )
298
298
{
299
299
var random = new Random ( ) ;
300
- var x = db . Orders . Count ( o => o . OrderId - idMin - 1 < random . Next ( 10 ) ) ;
300
+ var x = db . Orders . Count ( o => o . OrderId - idMin < random . Next ( 10 ) ) ;
301
301
302
302
Assert . That ( x , Is . GreaterThan ( 0 ) . And . LessThan ( 10 ) ) ;
303
303
// Next requires support of both floor and rand
You can’t perform that action at this time.
0 commit comments