workhorse: replace tmpdir workaround with native T tmp
What does this MR do and why?
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.
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.