Temporarily commenting out the Debug.Assert of block freeing

Unit tests using ad-hoc contexts aren't guaranteed to dispose pools.
That's kinda making unit tests fail, more or less, because Debug...
This commit is contained in:
Louis DeJardin 2015-09-25 14:17:09 -07:00
parent 318f3b7145
commit 5070b8073e
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Infrastructure
~MemoryPoolBlock2()
{
Debug.Assert(!_pinHandle.IsAllocated, "Ad-hoc memory block wasn't unpinned");
Debug.Assert(Slab == null || !Slab.IsActive, "Block being garbage collected instead of returned to pool");
// Debug.Assert(Slab == null || !Slab.IsActive, "Block being garbage collected instead of returned to pool");
if (_pinHandle.IsAllocated)
{