Skip to content

Commit

Permalink
GarbageCollection2Test - Travis fails to release Logger-object when o…
Browse files Browse the repository at this point in the history
…nly WeakReferences
  • Loading branch information
snakefoot committed Apr 21, 2019
1 parent 0f0669a commit dcf9181
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,6 +1,6 @@
language: csharp

mono: 5.2.0
mono: 5.8.0
dotnet: 2.0.0
dist: bionic

Expand Down
2 changes: 1 addition & 1 deletion tests/NLog.UnitTests/LogManagerTests.cs
Expand Up @@ -81,7 +81,7 @@ public void GarbageCollection2Test()
WeakReference wr = GetWeakReferenceToTemporaryLogger();

// nobody's holding a reference to this Logger anymore, so GC.Collect(2) should free it
GC.Collect();
GC.Collect(2, GCCollectionMode.Forced, true);
Assert.False(wr.IsAlive);
}

Expand Down

0 comments on commit dcf9181

Please sign in to comment.