Avoid return fucn() instead use t.Cleanup(fucn() {...}) part 2
What does this MR do?
This is the second MR of the related issue. This part includes other _test.go files.
The Body's are already closed using testhelpers.Close() and now functions which are returned, are being used in t.Cleanup().
issue: #607 (closed)
MR part 1: !689 (merged)
TODO
-
I added the Changelogtrailer (e.g.Changelog: added) 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
Edited by Yiğithan Kardaş