Skip to content

Commit 0d8af90

Browse files
authored
Fix gRPC template tests (#45702)
1 parent a24af1f commit 0d8af90

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/ProjectTemplates/test/Templates.Tests/GrpcTemplateTest.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public ITestOutputHelper Output
3535
}
3636

3737
[ConditionalTheory]
38-
[SkipOnHelix("Not supported queues", Queues = "All.OSX;" + HelixConstants.Windows10Arm64 + HelixConstants.DebianArm64)]
38+
[SkipOnHelix("Not supported queues", Queues = "windows.11.arm64.open;" + HelixConstants.Windows10Arm64 + HelixConstants.DebianArm64)]
3939
[SkipOnAlpine("https://github.com/grpc/grpc/issues/18338")]
4040
[InlineData(true)]
4141
[InlineData(false)]
@@ -54,11 +54,9 @@ public async Task GrpcTemplate(bool useProgramMain)
5454

5555
await project.RunDotNetBuildAsync();
5656

57-
var isOsx = RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
5857
var isWindowsOld = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && Environment.OSVersion.Version < new Version(6, 2);
59-
var unsupported = isOsx || isWindowsOld;
6058

61-
using (var serverProcess = project.StartBuiltProjectAsync(hasListeningUri: !unsupported, logger: Logger))
59+
using (var serverProcess = project.StartBuiltProjectAsync(hasListeningUri: !isWindowsOld, logger: Logger))
6260
{
6361
// These templates are HTTPS + HTTP/2 only which is not supported on some platforms.
6462
if (isWindowsOld)
@@ -76,7 +74,7 @@ public async Task GrpcTemplate(bool useProgramMain)
7674
}
7775
}
7876

79-
using (var aspNetProcess = project.StartPublishedProjectAsync(hasListeningUri: !unsupported))
77+
using (var aspNetProcess = project.StartPublishedProjectAsync(hasListeningUri: !isWindowsOld))
8078
{
8179
// These templates are HTTPS + HTTP/2 only which is not supported on some platforms.
8280
if (isWindowsOld)

0 commit comments

Comments
 (0)