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 453cf48 commit 65ef9c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/NLog.UnitTests/LogManagerTests.cs
Original file line number Diff line number Diff line change
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 65ef9c5

Please sign in to comment.