Skip to content

Commit

Permalink
Add test to make sure request is still valid
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinjahn committed Dec 9, 2024
1 parent 3a9473e commit e5f910f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public async Task BodyInspectionHandlerGetsRequestBodyStream()
// Then
Assert.NotNull(option.RequestBody);
Assert.Equal("request test", GetStringFromStream(option.RequestBody!));
Assert.Equal("request test", await request.Content.ReadAsStringAsync()); // response from option is separate from "normal" request stream
}

[Fact]
Expand Down

0 comments on commit e5f910f

Please sign in to comment.