Skip to content

Commit 0bb60b0

Browse files
committed
Remove SqlLogSpy
1 parent 325c9cb commit 0bb60b0

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

src/NHibernate.Test/Linq/ConstantTest.cs

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -273,27 +273,24 @@ public void DmlPlansAreProperlyHandled()
273273

274274
using (session.BeginTransaction())
275275
{
276-
using (var spy = new SqlLogSpy())
277-
{
278-
var listOfGuids = new[] {"UNKNOWN", "UNKNOWN2"}.ToList();
279-
db.Customers.Where(x => listOfGuids.Contains(x.CustomerId)).Update(
280-
x => new Customer
281-
{
282-
CompanyName = "Constant1"
283-
});
284-
285-
db.Customers.Where(x => listOfGuids.Contains(x.CustomerId))
286-
.Update(
287-
x => new Customer
288-
{
289-
ContactName = "Constant1"
290-
});
291-
292-
Assert.That(
293-
cache.Count,
294-
Is.EqualTo(0).Or.EqualTo(2),
295-
"Query plans should either be cached separately or not cached at all.");
296-
}
276+
var listOfGuids = new[] {"UNKNOWN", "UNKNOWN2"}.ToList();
277+
db.Customers.Where(x => listOfGuids.Contains(x.CustomerId)).Update(
278+
x => new Customer
279+
{
280+
CompanyName = "Constant1"
281+
});
282+
283+
db.Customers.Where(x => listOfGuids.Contains(x.CustomerId))
284+
.Update(
285+
x => new Customer
286+
{
287+
ContactName = "Constant1"
288+
});
289+
290+
Assert.That(
291+
cache.Count,
292+
Is.EqualTo(0).Or.EqualTo(2),
293+
"Query plans should either be cached separately or not cached at all.");
297294
}
298295
}
299296

0 commit comments

Comments
 (0)