Skip Redis tests on macOS (#2740)

This commit is contained in:
BrennanConroy 2018-08-07 10:20:11 -07:00 committed by GitHub
parent dadff9fc29
commit d8741d1b0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -50,6 +50,13 @@ namespace Microsoft.AspNetCore.SignalR.Redis.Tests
private static string GetDockerLocation()
{
// OSX + Docker + Redis don't play well together for some reason. We already have these tests covered on Linux and Windows
// So we are happy ignoring them on OSX
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
return null;
}
foreach (var dir in Environment.GetEnvironmentVariable("PATH").Split(Path.PathSeparator))
{
var candidate = Path.Combine(dir, "docker" + _exeSuffix);