diff --git a/src/tests/Recyclarr.TrashLib.Tests/Config/Parsing/ConfigurationLoaderTest.cs b/src/tests/Recyclarr.TrashLib.Tests/Config/Parsing/ConfigurationLoaderTest.cs index c0e6d9a1..a58bf78b 100644 --- a/src/tests/Recyclarr.TrashLib.Tests/Config/Parsing/ConfigurationLoaderTest.cs +++ b/src/tests/Recyclarr.TrashLib.Tests/Config/Parsing/ConfigurationLoaderTest.cs @@ -72,15 +72,16 @@ public class ConfigurationLoaderTest : TrashLibIntegrationFixture var str = new StringBuilder($"{sectionName}:"); const string templateYaml = """ - instance{1}: base_url: http://{0} api_key: abc - """; - var counter = 0; - str.Append(args.Aggregate("", (current, p) => current + templateYaml.FormatWith(p, counter++))); + for (var i = 0; i < args.Length; ++i) + { + str.Append($"\n{templateYaml.FormatWith(args[i], i)}\n"); + } + return str.ToString(); }