Skip to content

Commit e7a0bbc

Browse files
committed
Correct parameters count to keep test relevant
The test input data configured to have inline query as separate sql query. Two parameters it had were on the edge of parameter count, extra two parameters will defetnatelly keep inline query in separate sql query.
1 parent c23e715 commit e7a0bbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Orm/Xtensive.Orm.Tests/Storage/CommandProcessing/BatchingCommandProcessorParametersManagement.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public void InlineQueryInSeparateBatchTest()
192192
q.All<ALotOfFieldsEntityValid>().Where(e => e.Id.In(IncludeAlgorithm.ComplexCondition, ids))));
193193

194194
var inlineQuery = session.Query.All<ALotOfFieldsEntityValid>()
195-
.Where(e => e.Id.In(IncludeAlgorithm.ComplexCondition, new[] { 1, 2 }));
195+
.Where(e => e.Id.In(IncludeAlgorithm.ComplexCondition, new[] { 1, 2, 3, 4 }));
196196

197197
using (counter.Attach()) {
198198
Assert.That(inlineQuery.Any(), Is.True);
@@ -246,7 +246,7 @@ public async Task InlineQueryInSeparateBatchAsyncTest()
246246

247247
using (counter.Attach()) {
248248
var inlineQuery = await session.Query.All<ALotOfFieldsEntityValid>()
249-
.Where(e => e.Id.In(IncludeAlgorithm.ComplexCondition, new[] { 1, 2 })).AsAsync();
249+
.Where(e => e.Id.In(IncludeAlgorithm.ComplexCondition, new[] { 1, 2, 3, 4 })).AsAsync();
250250
Assert.That(inlineQuery.Any(), Is.True);
251251
Assert.That(counter.Count, Is.EqualTo(6));
252252
}

0 commit comments

Comments
 (0)