Skip to content

Commit 4321c66

Browse files
committed
Fix Identity tests
1 parent 8d72163 commit 4321c66

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Identity/test/InMemory.Test/FunctionalTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,12 +352,12 @@ private static TestServer CreateServer(Action<IServiceCollection> configureServi
352352
}
353353
else if (req.Path == new PathString("/me"))
354354
{
355-
Describe(res, AuthenticateResult.Success(new AuthenticationTicket(context.User, null, "Application")));
355+
await DescribeAsync(res, AuthenticateResult.Success(new AuthenticationTicket(context.User, null, "Application")));
356356
}
357357
else if (req.Path.StartsWithSegments(new PathString("/me"), out remainder))
358358
{
359359
var auth = await context.AuthenticateAsync(remainder.Value.Substring(1));
360-
Describe(res, auth);
360+
await DescribeAsync(res, auth);
361361
}
362362
else if (req.Path == new PathString("/testpath") && testpath != null)
363363
{
@@ -393,7 +393,7 @@ private static TestServer CreateServer(Action<IServiceCollection> configureServi
393393
return server;
394394
}
395395

396-
private static void Describe(HttpResponse res, AuthenticateResult result)
396+
private static async Task DescribeAsync(HttpResponse res, AuthenticateResult result)
397397
{
398398
res.StatusCode = 200;
399399
res.ContentType = "text/xml";
@@ -412,7 +412,7 @@ private static void Describe(HttpResponse res, AuthenticateResult result)
412412
{
413413
xml.WriteTo(writer);
414414
}
415-
res.Body.Write(memory.ToArray(), 0, memory.ToArray().Length);
415+
await res.Body.WriteAsync(memory.ToArray(), 0, memory.ToArray().Length);
416416
}
417417
}
418418

0 commit comments

Comments
 (0)