Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 3878523

Browse files
committed
fix tes
1 parent d867342 commit 3878523

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

tests/ServiceStack.OrmLite.Tests/Issues/NoSqlLoggingIssue.cs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,6 @@ namespace ServiceStack.OrmLite.Tests.Issues
66
{
77
public class NoSqlLoggingIssue : OrmLiteTestBase
88
{
9-
[Test]
10-
public void Does_log_SQL_Insert_for_Saves()
11-
{
12-
var sbLogFactory = new StringBuilderLogFactory();
13-
LogManager.LogFactory = sbLogFactory;
14-
15-
using (var db = OpenDbConnection())
16-
{
17-
db.DropAndCreateTable<PersonWithAutoId>();
18-
19-
db.Save(new Person { Id = 1, FirstName = "first", LastName = "last", Age = 27 });
20-
}
21-
22-
var sql = sbLogFactory.GetLogs();
23-
24-
Assert.That(sql, Does.Contain("INSERT INTO"));
25-
}
26-
279
[Test]
2810
public void Does_log_SQL_Insert_for_Saves_with_Auto_Ids()
2911
{
@@ -40,6 +22,7 @@ public void Does_log_SQL_Insert_for_Saves_with_Auto_Ids()
4022
var sql = sbLogFactory.GetLogs();
4123

4224
Assert.That(sql, Does.Contain("INSERT INTO"));
25+
LogManager.LogFactory = null;
4326
}
4427
}
4528
}

0 commit comments

Comments
 (0)