Skip to content

Commit

Permalink
Merge pull request #2986 from snakefoot/FixFileTargetTests
Browse files Browse the repository at this point in the history
Ignore DateArchive_UsesDateFromCurrentTimeSource on Travis with NetCore
  • Loading branch information
304NotModified committed Nov 1, 2018
2 parents 7e483a5 + 8b9ed58 commit 17da4da
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/NLog.UnitTests/Targets/FileTargetTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,14 @@ where UniqueBaseAppender(concurrentWrites, keepFileOpen, networkWrites, forceMut
[MemberData(nameof(DateArchive_UsesDateFromCurrentTimeSource_TestParameters))]
public void DateArchive_UsesDateFromCurrentTimeSource(DateTimeKind timeKind, bool includeDateInLogFilePath, bool concurrentWrites, bool keepFileOpen, bool networkWrites, bool includeSequenceInArchive, bool forceManaged, bool forceMutexConcurrentWrites)
{
#if NETSTANDARD
if (IsTravis())
{
Console.WriteLine("[SKIP] FileTargetTests.DateArchive_UsesDateFromCurrentTimeSource because SetLastWriteTime is not working on Travis");
return;
}
#endif

const string archiveDateFormat = "yyyyMMdd";
const int maxArchiveFiles = 3;

Expand Down

0 comments on commit 17da4da

Please sign in to comment.