From b3adeafc7f0b4e5f88e77aa2d50104b1090bb79d Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Mon, 6 Jul 2026 14:47:54 +0200 Subject: [PATCH] Fixed failing test --- Duplicati/UnitTest/HttpReportStatusTests.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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.