Skip to content

Commit a8e328c

Browse files
fix(#19): this commit fixes CS1998, which declared the method as async but did not use “await”
1 parent 44a3083 commit a8e328c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Boundaries/Comanda.Orchestrator/Tests/Fixtures/WebApplicationFixture.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public sealed class WebApplicationFixture : IAsyncLifetime
99
public IServiceProvider Services { get; private set; } = default!;
1010
private WebApplicationFactory<Program> _factory = default!;
1111

12-
public async ValueTask InitializeAsync()
12+
public ValueTask InitializeAsync()
1313
{
1414
_factory = new WebApplicationFactory<Program>().WithWebHostBuilder(builder =>
1515
{
@@ -22,7 +22,7 @@ public async ValueTask InitializeAsync()
2222
options.DefaultScheme = Defaults.AuthenticationScheme;
2323
});
2424

25-
policy.AddScheme<AuthenticationSchemeOptions, BypassAuthenticationHandler>(Defaults.AuthenticationScheme, _ => { });
25+
policy.AddScheme<AuthenticationSchemeOptions, BypassAuthenticationHandler>(Defaults.AuthenticationScheme, _ => { });
2626
services.AddAuthorizationBuilder()
2727
.SetDefaultPolicy(new AuthorizationPolicyBuilder(Defaults.AuthenticationScheme)
2828
.RequireAuthenticatedUser()
@@ -32,6 +32,8 @@ public async ValueTask InitializeAsync()
3232

3333
HttpClient = _factory.CreateClient();
3434
Services = _factory.Services;
35+
36+
return ValueTask.CompletedTask;
3537
}
3638

3739
public async ValueTask DisposeAsync()

0 commit comments

Comments
 (0)