Skip to content

Commit 69ce044

Browse files
committed
Tests: add OS to output
Trying to figure out what's happening with Appveyor vs. local socket exceptions.
1 parent f9c7e58 commit 69ce044

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

StackExchange.Redis.Tests/Helpers/Extensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Xunit.Abstractions;
1+
using System.Runtime.InteropServices;
2+
using Xunit.Abstractions;
23

34
namespace StackExchange.Redis.Tests.Helpers
45
{
@@ -15,6 +16,7 @@ public static void WriteFrameworkVersion(this ITestOutputHelper output)
1516
#else
1617
output.WriteLine("Compiled under <unknown framework>");
1718
#endif
19+
output.WriteLine("Running on: " + RuntimeInformation.OSDescription);
1820
}
1921
}
2022
}

StackExchange.Redis.Tests/StackExchange.Redis.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<PackageReference Include="Jil" Version="2.15.4" />
1919
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
2020
<PackageReference Include="Moq" Version="4.7.99" />
21+
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />
2122
<PackageReference Include="xunit" Version="$(xUnitVersion)" />
2223
<PackageReference Include="xunit.runner.visualstudio" Version="$(xUnitVersion)" />
2324
<DotNetCliToolReference Include="dotnet-xunit" Version="$(xUnitVersion)" />

0 commit comments

Comments
 (0)