diff --git a/Duplicati/UnitTest/HttpReportStatusTests.cs b/Duplicati/UnitTest/HttpReportStatusTests.cs index d3ace22b1..85daeebdb 100644 --- a/Duplicati/UnitTest/HttpReportStatusTests.cs +++ b/Duplicati/UnitTest/HttpReportStatusTests.cs @@ -254,7 +254,13 @@ namespace Duplicati.UnitTest [Test] public async Task ReportIncludesEnvironmentMetadataAsync() { - using var module = CreateConfigured(); + var module = new CapturingHttpReportStatus(); + module.Configure(new Dictionary + { + ["http-report-status-url"] = "http://localhost/example", + ["http-report-status-interval"] = "1s", + ["machine-id"] = "test-machine-id", + }); // The remote URL is captured via the IGenericCallbackModule.OnStart hook, mirroring // ReportHelper. Drive it to populate the backup id and destination type.