Skip to content

Commit d5d1508

Browse files
committed
Try to solve AppVeyor failing
1 parent 3d84394 commit d5d1508

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ public void WhenFirstOpeningFailedWithLockRetryDelayedUntilNextCheckpoint()
154154
.WriteTo.File(Path.Combine(temp.Path, fileName), rollOnFileSizeLimit: true, fileSizeLimitBytes: 1, rollingInterval: RollingInterval.Minute, hooks: new FailOpeningHook(true, 2, 3, 4))
155155
.CreateLogger();
156156
LogEvent e1 = Some.InformationEvent(new DateTime(2012, 10, 28)),
157-
e2 = Some.InformationEvent(e1.Timestamp.AddMilliseconds(1)),
158-
e3 = Some.InformationEvent(e2.Timestamp.AddMinutes(29)),
159-
e4 = Some.InformationEvent(e3.Timestamp.AddMinutes(1));
157+
e2 = Some.InformationEvent(e1.Timestamp.AddSeconds(1)),
158+
e3 = Some.InformationEvent(e2.Timestamp.AddMinutes(28)),
159+
e4 = Some.InformationEvent(e3.Timestamp.AddMinutes(3));
160160
LogEvent[] logEvents = new[] { e1, e2, e3, e4 };
161161

162162
foreach (var logEvent in logEvents)
@@ -192,9 +192,9 @@ public void WhenFirstOpeningFailedWithLockRetryDelayed30Minutes()
192192
.WriteTo.File(Path.Combine(temp.Path, fileName), rollOnFileSizeLimit: true, fileSizeLimitBytes: 1, rollingInterval: RollingInterval.Hour, hooks: new FailOpeningHook(true, 2, 3, 4))
193193
.CreateLogger();
194194
LogEvent e1 = Some.InformationEvent(new DateTime(2012, 10, 28)),
195-
e2 = Some.InformationEvent(e1.Timestamp.AddMilliseconds(1)),
196-
e3 = Some.InformationEvent(e2.Timestamp.AddMinutes(29)),
197-
e4 = Some.InformationEvent(e3.Timestamp.AddMinutes(1));
195+
e2 = Some.InformationEvent(e1.Timestamp.AddSeconds(1)),
196+
e3 = Some.InformationEvent(e2.Timestamp.AddMinutes(28)),
197+
e4 = Some.InformationEvent(e3.Timestamp.AddMinutes(3));
198198
LogEvent[] logEvents = new[] { e1, e2, e3, e4 };
199199

200200
foreach (var logEvent in logEvents)
@@ -229,9 +229,9 @@ public void WhenFirstOpeningFailedWithoutLockRetryDelayed30Minutes()
229229
.WriteTo.File(Path.Combine(temp.Path, fileName), rollOnFileSizeLimit: true, fileSizeLimitBytes: 1, rollingInterval: RollingInterval.Hour, hooks: new FailOpeningHook(false, 2))
230230
.CreateLogger();
231231
LogEvent e1 = Some.InformationEvent(new DateTime(2012, 10, 28)),
232-
e2 = Some.InformationEvent(e1.Timestamp.AddMilliseconds(1)),
233-
e3 = Some.InformationEvent(e2.Timestamp.AddMinutes(29)),
234-
e4 = Some.InformationEvent(e3.Timestamp.AddMinutes(1));
232+
e2 = Some.InformationEvent(e1.Timestamp.AddSeconds(1)),
233+
e3 = Some.InformationEvent(e2.Timestamp.AddMinutes(28)),
234+
e4 = Some.InformationEvent(e3.Timestamp.AddMinutes(3));
235235
LogEvent[] logEvents = new[] { e1, e2, e3, e4 };
236236

237237
foreach (var logEvent in logEvents)

0 commit comments

Comments
 (0)