Skip to content

Commit 8b3a17c

Browse files
committed
Remove test as it is impossible to unit test reliably
1 parent 2e9b7db commit 8b3a17c

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/Servers/Kestrel/Kestrel/test/KestrelConfigurationBuilderTests.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -36,30 +36,6 @@ private KestrelServerOptions CreateServerOptions()
3636
return serverOptions;
3737
}
3838

39-
[Fact]
40-
[SkipOnHelix("(none)", Queues = "Ubuntu.1604.Amd64.Open;Windows.10.Amd64.Open")]
41-
[OSSkipCondition(OperatingSystems.Linux, SkipReason = "This check only applies to Mac OS as it is the one that checks the key for validity.")]
42-
[OSSkipCondition(OperatingSystems.Windows, SkipReason = "This check only applies to Mac OS as it is the one that checks the key for validity.")]
43-
public void DevCertWithInvalidPrivateKeyProducesCustomWarning()
44-
{
45-
var serverOptions = CreateServerOptions();
46-
var sink = serverOptions.ApplicationServices.GetRequiredService<TestSink>();
47-
var messages = new List<WriteContext>();
48-
sink.MessageLogged += wc => messages.Add(wc);
49-
serverOptions.Configure()
50-
.LocalhostEndpoint(5001, endpointOptions => { });
51-
52-
Assert.Empty(serverOptions.ListenOptions);
53-
54-
serverOptions.ConfigurationLoader.Load();
55-
56-
Assert.Single(serverOptions.ListenOptions);
57-
Assert.Equal(5001, serverOptions.ListenOptions[0].IPEndPoint.Port);
58-
59-
Assert.Equal(5, messages[^1].EventId);
60-
Assert.Equal(LogLevel.Warning, messages[^1].LogLevel);
61-
}
62-
6339
[Fact]
6440
public void ConfigureNamedEndpoint_OnlyRunForMatchingConfig()
6541
{

0 commit comments

Comments
 (0)