From d3f9474eab5b1bf18f05e3512c25e47ce4d7e46a Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 4 Jul 2021 02:25:09 -0400 Subject: [PATCH] PublishEvent after StartupContext to try fix integration tests --- src/NzbDrone.Host/Bootstrap.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/NzbDrone.Host/Bootstrap.cs b/src/NzbDrone.Host/Bootstrap.cs index 12389f6f8..0d8a24806 100644 --- a/src/NzbDrone.Host/Bootstrap.cs +++ b/src/NzbDrone.Host/Bootstrap.cs @@ -130,9 +130,8 @@ namespace NzbDrone.Host c.AutoAddServices(Bootstrap.ASSEMBLIES) .AddNzbDroneLogger() .AddDatabase() + .AddStartupContext(context) .Resolve().PublishEvent(new ApplicationStartingEvent()); - - c.AddStartupContext(context); }) .ConfigureWebHost(builder => {