Skip to content

Commit

Permalink
Revert "Setting text encoding to fix the newline char issue when usin…
Browse files Browse the repository at this point in the history
…g StreamReader (#2023)"

This reverts commit f7606fc.
  • Loading branch information
fabiocav committed Nov 11, 2023
1 parent 172ddf5 commit 7f13e41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT License. See License.txt in the project root for license information.

using System.IO;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using Azure.Storage.Blobs;
Expand Down Expand Up @@ -56,7 +55,7 @@ public async Task BlobTriggerStreamTest(
[BlobTrigger("test-trigger-stream-dotnet-isolated/{name}")] Stream stream, string name,
FunctionContext context)
{
var blobStreamReader = new StreamReader(stream, Encoding.UTF8);
var blobStreamReader = new StreamReader(stream);
string content = await blobStreamReader.ReadToEndAsync();
_logger.LogInformation("StreamTriggerOutput: {c}", content);
}
Expand Down
2 changes: 1 addition & 1 deletion test/E2ETests/E2ETests/Storage/BlobEndToEndTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public async Task BlobTrigger_String_Succeeds()
Assert.Equal("Hello World", result);
}

[Fact]
[Fact(Skip = "TODO: https://github.com/Azure/azure-functions-dotnet-worker/issues/1935")]
public async Task BlobTrigger_Stream_Succeeds()
{
string key = "StreamTriggerOutput: ";
Expand Down

0 comments on commit 7f13e41

Please sign in to comment.