Skip to content

Commit

Permalink
Strict test for Linux containers to check where we're missing libmsquic
Browse files Browse the repository at this point in the history
  • Loading branch information
ManickaP committed Feb 8, 2023
1 parent b1615d8 commit da36829
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void SupportedWindowsPlatforms_IsSupportedIsTrue()
}

[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsLinux))]
public async Task SupportedLinuxPlatforms_IsSupportedIsTrue()
public async Task SupportedLinuxPlatformsWithMsquic_IsSupportedIsTrue()
{
using Process find = new Process();
find.StartInfo.FileName = "find";
Expand All @@ -50,5 +50,12 @@ public async Task SupportedLinuxPlatforms_IsSupportedIsTrue()
_output.WriteLine("No msquic library found.");
}
}

[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsLinux), nameof(PlatformDetection.IsInContainer))]
public void SupportedLinuxPlatforms_IsSupportedIsTrue()
{
Assert.True(QuicListener.IsSupported);
Assert.True(QuicConnection.IsSupported);
}
}
}

0 comments on commit da36829

Please sign in to comment.