Commit 20da3edb authored by Marc Gravell's avatar Marc Gravell

v87

parent 0713119d
......@@ -2,6 +2,7 @@
<configuration>
<packageSources>
<clear/>
<!--<add key="localNuget" value="c:\code\LocalNuget" />-->
<add key="xUnit" value="https://www.myget.org/F/xunit/api/v3/index.json" />
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
</packageSources>
......
......@@ -22,8 +22,8 @@ private static void ForceGC()
[Fact]
public void MuxerIsCollected()
{
#if !DEBUG
Skip.Inconclusive("Only predictable in debug builds");
#if DEBUG
Skip.Inconclusive("Only predictable in release builds");
#endif
// this is more nuanced than it looks; multiple sockets with
// async callbacks, plus a heartbeat on a timer
......@@ -34,9 +34,9 @@ public void MuxerIsCollected()
ForceGC();
#if DEBUG // this counter only exists in debug
int before = ConnectionMultiplexer.CollectedWithoutDispose;
#endif
//#if DEBUG // this counter only exists in debug
// int before = ConnectionMultiplexer.CollectedWithoutDispose;
//#endif
var wr = new WeakReference(muxer);
muxer = null;
ForceGC();
......@@ -44,10 +44,10 @@ public void MuxerIsCollected()
// should be collectable
Assert.Null(wr.Target);
#if DEBUG // this counter only exists in debug
int after = ConnectionMultiplexer.CollectedWithoutDispose;
Assert.Equal(before + 1, after);
#endif
//#if DEBUG // this counter only exists in debug
// int after = ConnectionMultiplexer.CollectedWithoutDispose;
// Assert.Equal(before + 1, after);
//#endif
}
}
}
......@@ -19,7 +19,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Pipelines.Sockets.Unofficial" Version="0.2.1-alpha.86" />
<PackageReference Include="Pipelines.Sockets.Unofficial" Version="0.2.1-alpha.87" />
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="4.5.0" />
<PackageReference Include="System.IO.Pipelines" Version="4.5.0" />
<PackageReference Include="System.Threading.Channels" Version="4.5.0" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment