test: Add await where necessary

pull/201/head
Robert Dailey 1 year ago
parent e54cef0859
commit dc93b10e64

@ -12,7 +12,7 @@ namespace Recyclarr.TrashLib.Tests.Config.Listers;
public class ConfigTemplateListerTest : IntegrationFixture
{
[Test, AutoMockData]
public void Hidden_templates_are_not_rendered(
public async Task Hidden_templates_are_not_rendered(
IFileInfo stubFile,
[Frozen(Matching.ImplementedInterfaces)] TestConsole console,
[Frozen] IConfigTemplateGuideService guideService,
@ -26,7 +26,7 @@ public class ConfigTemplateListerTest : IntegrationFixture
new TemplatePath(SupportedServices.Sonarr, "s2", stubFile, true)
});
sut.List();
await sut.List();
console.Output.Should().NotContain("s2");
}

@ -33,7 +33,7 @@ public class ConfigurationFinderTest
fs.AddFile(path.FullName, new MockFileData(""));
}
var result = sut.GetConfigFiles(null);
var result = sut.GetConfigFiles();
result.Should().BeEquivalentTo(yamlPaths, o => o.Including(x => x.FullName));
}

@ -10,7 +10,7 @@ public class ConfigListProcessorTest
{
[Test]
[InlineAutoMockData(ConfigListCategory.Templates)]
public void List_templates_invokes_correct_lister(
public async Task List_templates_invokes_correct_lister(
ConfigListCategory category,
[Frozen(Matching.ImplementedInterfaces)] StubAutofacIndex<ConfigListCategory, IConfigLister> configListers,
IConfigLister lister,
@ -18,8 +18,8 @@ public class ConfigListProcessorTest
{
configListers.Add(category, lister);
sut.Process(category);
await sut.Process(category);
lister.Received().List();
await lister.Received().List();
}
}

Loading…
Cancel
Save