test: fix response body not being closed
What does this MR do?
I'm trying to update golangci-lint but it's picking up a lot of issues so I'm splitting them into smaller MRs.
This is about bodyclose finding response bodies not being closed in tests.
TODO
-
I added the Changelog
trailer (e.g.Changelog: feature
) to the commits that need to be included in the changelog -
I added unit tests or they are not required -
I added acceptance tests or they are not required -
I added documentation (or it's not required) -
I followed code review guidelines -
I followed Go Style guidelines