Skip to content

Commit

Permalink
Fix build failure due to conflicting PR merge (#61286)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky authored Nov 7, 2021
1 parent 544532a commit d40f560
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ static void ValidateAggregatedWeakReference()
GC.Collect();
GC.WaitForPendingFinalizers();

Assert.IsNull(handle.Target);
Assert.IsFalse(weakRef.TryGetTarget(out _));
Assert.Null(handle.Target);
Assert.False(weakRef.TryGetTarget(out _));

static (GCHandle handle, WeakReference<DerivedObject>) GetWeakReference()
{
Expand Down

0 comments on commit d40f560

Please sign in to comment.