Skip to content

Commit 32d7e23

Browse files
committed
And one more...
1 parent 14ebc56 commit 32d7e23

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/Serilog.Sinks.File.Tests/RollingFileSinkTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ public void WhenFirstOpeningFailedWithLockRetryDelayedUntilNextCheckpoint()
163163
.CreateLogger();
164164
LogEvent e1 = Some.InformationEvent(new DateTime(2012, 10, 28)),
165165
e2 = Some.InformationEvent(e1.Timestamp.AddSeconds(1)),
166-
e3 = Some.InformationEvent(e2.Timestamp.AddMinutes(28)),
167-
e4 = Some.InformationEvent(e3.Timestamp.AddMinutes(3));
166+
e3 = Some.InformationEvent(e1.Timestamp.AddMinutes(5)),
167+
e4 = Some.InformationEvent(e1.Timestamp.AddMinutes(31));
168168
LogEvent[] logEvents = new[] { e1, e2, e3, e4 };
169169

170170
foreach (var logEvent in logEvents)
@@ -201,8 +201,8 @@ public void WhenFirstOpeningFailedWithLockRetryDelayed30Minutes()
201201
.CreateLogger();
202202
LogEvent e1 = Some.InformationEvent(new DateTime(2012, 10, 28)),
203203
e2 = Some.InformationEvent(e1.Timestamp.AddSeconds(1)),
204-
e3 = Some.InformationEvent(e2.Timestamp.AddMinutes(28)),
205-
e4 = Some.InformationEvent(e3.Timestamp.AddMinutes(3));
204+
e3 = Some.InformationEvent(e1.Timestamp.AddMinutes(5)),
205+
e4 = Some.InformationEvent(e1.Timestamp.AddMinutes(31));
206206
LogEvent[] logEvents = new[] { e1, e2, e3, e4 };
207207

208208
foreach (var logEvent in logEvents)
@@ -242,8 +242,8 @@ public void WhenFirstOpeningFailedWithoutLockRetryDelayed30Minutes()
242242
.CreateLogger();
243243
LogEvent e1 = Some.InformationEvent(new DateTime(2012, 10, 28)),
244244
e2 = Some.InformationEvent(e1.Timestamp.AddSeconds(1)),
245-
e3 = Some.InformationEvent(e2.Timestamp.AddMinutes(28)),
246-
e4 = Some.InformationEvent(e3.Timestamp.AddMinutes(3));
245+
e3 = Some.InformationEvent(e1.Timestamp.AddMinutes(5)),
246+
e4 = Some.InformationEvent(e1.Timestamp.AddMinutes(31));
247247
LogEvent[] logEvents = new[] { e1, e2, e3, e4 };
248248

249249
foreach (var logEvent in logEvents)
@@ -259,7 +259,7 @@ public void WhenFirstOpeningFailedWithoutLockRetryDelayed30Minutes()
259259

260260
foreach (var file in files)
261261
{
262-
_testOutputHelper.WriteLine(file);
262+
_testOutputHelper.WriteLine(file + ": " + System.IO.File.ReadAllText(file));
263263
}
264264
Assert.Equal(3, files.Length);
265265
// Successful write of e1:

0 commit comments

Comments
 (0)