Skip to content

Commit c585c85

Browse files
author
Kadluba Christian
committed
Fixed failing tests.
1 parent 6822b32 commit c585c85

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

test/Serilog.Sinks.MSSqlServer.Tests/TestTimeStamp.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ public void CanCreateDatabaseWithDateTimeByDefault()
2626
columnOptions: new ColumnOptions())
2727
.CreateLogger();
2828

29-
var file = File.CreateText("LevelAsEnum.True.Enum.Self.log");
30-
Debugging.SelfLog.Enable(TextWriter.Synchronized(file));
31-
3229
// act
3330
const string loggingInformationMessage = "Logging Information message";
3431
Log.Information(loggingInformationMessage);
@@ -56,9 +53,6 @@ public void CanStoreDateTimeOffsetWithCorrectLocalTimeZone()
5653
period: TimeSpan.FromSeconds(10),
5754
columnOptions: new ColumnOptions { TimeStamp = { DataType = SqlDbType.DateTimeOffset, ConvertToUtc = false }})
5855
.CreateLogger();
59-
60-
var file = File.CreateText("LevelAsEnum.True.Enum.Self.log");
61-
Debugging.SelfLog.Enable(TextWriter.Synchronized(file));
6256
var dateTimeOffsetNow = DateTimeOffset.Now;
6357

6458
// act
@@ -89,9 +83,6 @@ public void CanStoreDateTimeOffsetWithUtcTimeZone()
8983
columnOptions: new ColumnOptions { TimeStamp = { DataType = SqlDbType.DateTimeOffset, ConvertToUtc = true } })
9084
.CreateLogger();
9185

92-
var file = File.CreateText("LevelAsEnum.True.Enum.Self.log");
93-
Debugging.SelfLog.Enable(TextWriter.Synchronized(file));
94-
9586
// act
9687
const string loggingInformationMessage = "Logging Information message";
9788
Log.Information(loggingInformationMessage);

0 commit comments

Comments
 (0)