Skip to content

Commit 7124b9e

Browse files
authored
patch httpContent's content
1 parent ebfc1bd commit 7124b9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/E2E/Azure.Functions.PowerShellWorker.E2E/Azure.Functions.PowerShellWorker.E2E/DurableEndToEndTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ public async Task ExternalEventReturnsData()
222222
while (true)
223223
{
224224
// Send external event payload
225-
var httpContent = new StringContent("helloWorld!", Encoding.UTF8, "application/json");
225+
var json = JsonConvert.SerializeObject("helloWorld!");
226+
var httpContent = new StringContent(json, Encoding.UTF8, "application/json");
226227
await httpClient.PostAsync(raiseEventUri, httpContent);
227228

228229
var statusResponse = await httpClient.GetAsync(statusQueryGetUri);

0 commit comments

Comments
 (0)