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

v87

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