Skip to content

Commit 1434e23

Browse files
authored
Change OSX to macOS in error message (#12756)
1 parent 2969001 commit 1434e23

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/ProjectTemplates/test/GrpcTemplateTest.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public async Task GrpcTemplate()
4444
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
4545
{
4646
Assert.True(serverProcess.Process.HasExited, "built");
47-
Assert.Contains("System.NotSupportedException: HTTP/2 over TLS is not supported on OSX due to missing ALPN support.",
47+
Assert.Contains("System.NotSupportedException: HTTP/2 over TLS is not supported on macOS due to missing ALPN support.",
4848
ErrorMessages.GetFailedProcessMessageOrEmpty("Run built service", Project, serverProcess.Process));
4949
}
5050
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && Environment.OSVersion.Version < new Version(6, 2))
@@ -68,7 +68,7 @@ public async Task GrpcTemplate()
6868
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
6969
{
7070
Assert.True(aspNetProcess.Process.HasExited, "published");
71-
Assert.Contains("System.NotSupportedException: HTTP/2 over TLS is not supported on OSX due to missing ALPN support.",
71+
Assert.Contains("System.NotSupportedException: HTTP/2 over TLS is not supported on macOS due to missing ALPN support.",
7272
ErrorMessages.GetFailedProcessMessageOrEmpty("Run published service", Project, aspNetProcess.Process));
7373
}
7474
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && Environment.OSVersion.Version < new Version(6, 2))

src/Servers/Kestrel/Core/src/CoreStrings.resx

+1-1
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ For more information on configuring HTTPS see https://go.microsoft.com/fwlink/?l
606606
<value>The request trailers are not available yet. They may not be available until the full request body is read.</value>
607607
</data>
608608
<data name="HTTP2NoTlsOsx" xml:space="preserve">
609-
<value>HTTP/2 over TLS is not supported on OSX due to missing ALPN support.</value>
609+
<value>HTTP/2 over TLS is not supported on macOS due to missing ALPN support.</value>
610610
</data>
611611
<data name="HTTP2NoTlsWin7" xml:space="preserve">
612612
<value>HTTP/2 over TLS is not supported on Windows 7 due to missing ALPN support.</value>

src/Servers/Kestrel/test/FunctionalTests/Http2/HandshakeTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void TlsAndHttp2NotSupportedOnMac()
5353
});
5454
}));
5555

56-
Assert.Equal("HTTP/2 over TLS is not supported on OSX due to missing ALPN support.", ex.Message);
56+
Assert.Equal("HTTP/2 over TLS is not supported on macOS due to missing ALPN support.", ex.Message);
5757
}
5858

5959

0 commit comments

Comments
 (0)