Skip Redis tests on macOS (#2740)
This commit is contained in:
parent
dadff9fc29
commit
d8741d1b0f
|
|
@ -50,6 +50,13 @@ namespace Microsoft.AspNetCore.SignalR.Redis.Tests
|
||||||
|
|
||||||
private static string GetDockerLocation()
|
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))
|
foreach (var dir in Environment.GetEnvironmentVariable("PATH").Split(Path.PathSeparator))
|
||||||
{
|
{
|
||||||
var candidate = Path.Combine(dir, "docker" + _exeSuffix);
|
var candidate = Path.Combine(dir, "docker" + _exeSuffix);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue