Skip to content

Commit 23520ef

Browse files
Fix test valid only for some DB.
* Parameter name may not always have the '@' prefix, it could be nothing (Oracle, positionned), ':' (Postgres) or '?' (MySql)
1 parent 93e37ca commit 23520ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/NHibernate.Test/Async/NHSpecificTest/Logs/LogsFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public async Task WillGetSessionIdFromSessionLogsConcurrentAsync()
109109
for (var j = 0; j < 10; j++)
110110
{
111111
var sessionId = sessionIds[i];
112-
Assert.That(loggingEvent, Does.Contain($"@p0 = {i * 10 + j} [Type: Int32 (0:0:0)] | SessionId: {sessionId}"));
112+
Assert.That(loggingEvent, Does.Contain($"p0 = {i * 10 + j} [Type: Int32 (0:0:0)] | SessionId: {sessionId}"));
113113
}
114114
}
115115
}

src/NHibernate.Test/NHSpecificTest/Logs/LogsFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void WillGetSessionIdFromSessionLogsConcurrent()
9898
for (var j = 0; j < 10; j++)
9999
{
100100
var sessionId = sessionIds[i];
101-
Assert.That(loggingEvent, Does.Contain($"@p0 = {i * 10 + j} [Type: Int32 (0:0:0)] | SessionId: {sessionId}"));
101+
Assert.That(loggingEvent, Does.Contain($"p0 = {i * 10 + j} [Type: Int32 (0:0:0)] | SessionId: {sessionId}"));
102102
}
103103
}
104104
}

0 commit comments

Comments
 (0)