Skip to content

Commit 680d40f

Browse files
oskarbhazzik
authored andcommitted
LoggingTests: Fix test brittleness.
(cherry picked from commit a2e4891)
1 parent ac7a6f1 commit 680d40f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/NHibernate.Test/Linq/LoggingTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ public void CanLogLinqExpressionWithoutInitializingContainedProxy()
4747
// Verify that the expected logging did happen.
4848
var actualLog = logspy.GetWholeLog();
4949

50-
const string expectedLog =
51-
"Expression (partially evaluated): value(NHibernate.Linq.NhQueryable`1[NHibernate.DomainModel.Northwind.Entities.Product])" +
52-
".Where(product => (product == Product#1)).Count()";
50+
string expectedLog =
51+
"Expression (partially evaluated): value(NHibernate.Linq.NhQueryable`1[NHibernate.DomainModel.Northwind.Entities.Product])" +
52+
".Where(product => (product == Product#" + productId + ")).Count()";
5353
Assert.That(actualLog, Is.StringContaining(expectedLog));
5454

5555
// And verify that the proxy in the expression wasn't initialized.

0 commit comments

Comments
 (0)