Skip to content

Commit

Permalink
Fix MapAction_SingleTimeOnlyParam_StringReturn (dotnet#47064)
Browse files Browse the repository at this point in the history
This test assumes a locale and fails in the Helix queue on other distros.
  • Loading branch information
eerhardt authored Mar 7, 2023
1 parent d132420 commit 70ed42b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public async Task MapAction_ExplicitQueryParam_StringReturn(string source, strin
public async Task MapAction_SingleTimeOnlyParam_StringReturn()
{
var (results, compilation) = await RunGeneratorAsync("""
app.MapGet("/hello", ([FromQuery]TimeOnly p) => p.ToString());
app.MapGet("/hello", ([FromQuery]TimeOnly p) => p.ToString("o"));
""");
var endpoint = GetEndpointFromCompilation(compilation);

Expand All @@ -123,7 +123,7 @@ public async Task MapAction_SingleTimeOnlyParam_StringReturn()
httpContext.Request.QueryString = new QueryString("?p=13:30");

await endpoint.RequestDelegate(httpContext);
await VerifyResponseBodyAsync(httpContext, "1:30 PM");
await VerifyResponseBodyAsync(httpContext, "13:30:00.0000000");
await VerifyAgainstBaselineUsingFile(compilation);
}

Expand Down

0 comments on commit 70ed42b

Please sign in to comment.