Commit ff1b155a authored by Marc Gravell's avatar Marc Gravell

1.2.7 alpha 2; change System.IO.Compression to package ref

parent 2931ed44
<Project>
<PropertyGroup>
<VersionPrefix>1.2.6</VersionPrefix>
<VersionPrefix>1.2.7</VersionPrefix>
<Copyright>2017 Stack Exchange, Inc.</Copyright>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
......
......@@ -16,7 +16,6 @@
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'net46' ">
<Reference Include="System.IO.Compression" />
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
......@@ -29,6 +28,9 @@
<DefineConstants>$(DefineConstants);CORE_CLR</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.IO.Compression" Version="$(CoreFxVersion)" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.5' ">
<PackageReference Include="System.Collections.NonGeneric" Version="$(CoreFxVersion)" />
<PackageReference Include="System.Net.NameResolution" Version="$(CoreFxVersion)" />
......
......@@ -10,7 +10,7 @@ namespace StackExchange.Redis.Tests
[Collection(NonParallelCollection.Name)]
public class PubSub : TestBase
{
public PubSub(ITestOutputHelper output) : base (output) { }
public PubSub(ITestOutputHelper output) : base(output) { }
[Fact]
public void ExplicitPublishMode()
......@@ -252,12 +252,11 @@ public void TestPatternPubSub(bool preserveOrder)
}
}
#if DEBUG
[Fact]
public void SubscriptionsSurviveConnectionFailure()
{
#if !DEBUG
Assert.Inconclusive("Needs #DEBUG");
#endif
using (var muxer = Create(allowAdmin: true))
{
RedisChannel channel = Me();
......@@ -273,22 +272,18 @@ public void SubscriptionsSurviveConnectionFailure()
var server = GetServer(muxer);
Assert.Equal(1, server.GetCounters().Subscription.SocketCount);
#if DEBUG
server.SimulateConnectionFailure();
SetExpectedAmbientFailureCount(2);
#endif
Thread.Sleep(100);
sub.Ping();
#if DEBUG
Assert.Equal(2, server.GetCounters().Subscription.SocketCount);
#endif
sub.Publish(channel, "abc");
sub.Ping();
Assert.Equal(2, VolatileWrapper.Read(ref counter));
}
}
#endif
}
internal static class VolatileWrapper
{
public static int Read(ref int location)
......
......@@ -11,7 +11,6 @@
</PropertyGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'net46' ">
<Reference Include="System.IO.Compression" />
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
......@@ -24,6 +23,9 @@
<DefineConstants>$(DefineConstants);CORE_CLR</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.IO.Compression" Version="$(CoreFxVersion)" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.5' ">
<PackageReference Include="System.Collections.NonGeneric" Version="$(CoreFxVersion)" />
<PackageReference Include="System.Net.NameResolution" Version="$(CoreFxVersion)" />
......
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