Skip to content

Commit

Permalink
Fix missing dispose on MultipartFormDataContent #965
Browse files Browse the repository at this point in the history
  • Loading branch information
hocinehacherouf committed Jul 25, 2022
1 parent a5641a8 commit d80f37e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public async Task ChangeAvatarPropertiesShouldChangeAvatar()
{
// Arrange
var deviceModel = Fixture.Create<DeviceModel>();
var content = new MultipartFormDataContent();
using var content = new MultipartFormDataContent();

_ = MockHttpClient.When(HttpMethod.Post, $"/api/models/{deviceModel.ModelId}/avatar")
.With(m =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ public async Task ChangeAvatarPropertiesShouldChangeAvatar()
{
ModelId = Fixture.Create<string>()
};
var content = new MultipartFormDataContent();

using var content = new MultipartFormDataContent();

_ = MockHttpClient.When(HttpMethod.Post, $"/api/lorawan/models/{deviceModel.ModelId}/avatar")
.With(m =>
Expand Down

0 comments on commit d80f37e

Please sign in to comment.