1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-21 04:55:08 -05:00

Switch to empty builder

This commit is contained in:
Justin Baur 2025-04-06 10:06:42 -04:00
parent 0400ae187a
commit ee4678453b
No known key found for this signature in database

View File

@ -259,9 +259,7 @@ public class X509ChainCustomizationServiceCollectionExtensionsTests
private static async Task<IAsyncDisposable> CreateServerAsync(int port, Action<HttpsConnectionAdapterOptions> configure) private static async Task<IAsyncDisposable> CreateServerAsync(int port, Action<HttpsConnectionAdapterOptions> configure)
{ {
// Start HTTP Server with self signed cert var builder = WebApplication.CreateEmptyBuilder(new WebApplicationOptions());
var builder = WebApplication.CreateSlimBuilder();
builder.Logging.AddFakeLogging();
builder.Services.AddRoutingCore(); builder.Services.AddRoutingCore();
builder.WebHost.UseKestrelCore() builder.WebHost.UseKestrelCore()
.ConfigureKestrel(options => .ConfigureKestrel(options =>