Skip to content

Commit

Permalink
Upgrade BCP
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Nov 1, 2023
1 parent 819bb2e commit b4bb6b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ public async Task Download_GraphQL_SDL_Disabled()
HttpResponseMessage response = await server.CreateClient().SendAsync(request);

// assert
Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
var result = await response.Content.ReadAsStringAsync();
result.MatchSnapshot();
Assert.Equal(HttpStatusCode.Moved, response.StatusCode);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ private async Task SerializeInternalAsync(
Stream outputStream,
CancellationToken cancellationToken = default)
{
await using var writer = new Utf8JsonWriter(outputStream, _options);

WriteResult(writer, result);
using var buffer = new ArrayWriter();
SerializeInternal(result, buffer);

Expand All @@ -119,7 +116,6 @@ await outputStream
.ConfigureAwait(false);
#endif

await writer.FlushAsync(cancellationToken).ConfigureAwait(false);
await outputStream.FlushAsync(cancellationToken).ConfigureAwait(false);
}

Expand Down

0 comments on commit b4bb6b3

Please sign in to comment.