test: replace tmpdir workaround with native T tmp
What does this MR do?
Go 1.15 added native support for test tmp directories so there's no need for the current workaround (mkdir + cleanup func).
From https://golang.org/doc/go1.15:
The new methods T.TempDir and B.TempDir return temporary directories that are automatically cleaned up at the end of the test.
Method doc:
TempDir returns a temporary directory for the test to use. The directory is automatically removed by Cleanup when the test and all its subtests complete. Each subsequent call to t.TempDir returns a unique directory; if the directory creation fails, TempDir terminates the test by calling Fatal.
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