Skip to content

Commit 37a094c

Browse files
committed
Fix LeaksContainer
1 parent 7456cca commit 37a094c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public BaseFixture()
2020
BuildFakeConfigs(this);
2121

2222
#if LEAKS_IDENTIFYING
23-
LeaksContainer.Clear();
23+
Core.LeaksContainer.Clear();
2424
#endif
2525
}
2626

@@ -276,11 +276,11 @@ public virtual void Dispose()
276276
GC.Collect();
277277
GC.WaitForPendingFinalizers();
278278

279-
if (LeaksContainer.TypeNames.Any())
279+
if (Core.LeaksContainer.TypeNames.Any())
280280
{
281281
Assert.False(true, string.Format("Some handles of the following types haven't been properly released: {0}.{1}"
282282
+ "In order to get some help fixing those leaks, uncomment the define LEAKS_TRACKING in Libgit2Object.cs{1}"
283-
+ "and run the tests locally.", string.Join(", ", LeaksContainer.TypeNames), Environment.NewLine));
283+
+ "and run the tests locally.", string.Join(", ", Core.LeaksContainer.TypeNames), Environment.NewLine));
284284
}
285285
#endif
286286
}

0 commit comments

Comments
 (0)