Skip to content

Commit f80f222

Browse files
committed
Don't require dev cert for integration test
1 parent 432029d commit f80f222

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Servers/Kestrel/Core/src/KestrelConfigurationLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public void Load()
298298
// There's no reason to rerun an EndpointConfigurations callback if nothing changed.
299299
var matchingBoundEndpoints = endpointsToStop.Where(o => o.EndpointConfig == endpoint).ToList();
300300

301-
if (matchingBoundEndpoints.Any())
301+
if (matchingBoundEndpoints.Count > 0)
302302
{
303303
endpointsToStop.RemoveAll(o => o.EndpointConfig == endpoint);
304304
Options.ConfigurationBackedListenOptions.AddRange(matchingBoundEndpoints);

src/Servers/Kestrel/Core/test/KestrelServerTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,8 @@ public async Task ReloadsOnConfigurationChangeWhenOptedIn()
571571
{
572572
new KeyValuePair<string, string>("Endpoints:A:Url", "http://*:5000"),
573573
new KeyValuePair<string, string>("Endpoints:B:Url", "http://*:5002"),
574-
new KeyValuePair<string, string>("Endpoints:C:Url", "https://*:5003"),
574+
new KeyValuePair<string, string>("Endpoints:C:Url", "http://*:5003"),
575+
new KeyValuePair<string, string>("Endpoints:C:Protocols", "Http1"),
575576
}).Build();
576577

577578
await changeCallback().DefaultTimeout();

0 commit comments

Comments
 (0)