-
Notifications
You must be signed in to change notification settings - Fork 809
Closed
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
We use gocheck for running tests via suites, gocheck allows for setup/teardown for the entire suite and for each test (see documentation here: https://labix.org/gocheck).
We also have a number of suites/tests which setup temporary directories and then delete them afterwards. gocheck however already has this feature built in: c.MkDir()
which will create a temporary folder that will automatically be removed at the end. For example there is quite a lot of usage of TemporalDir()
we also have multiple TemporalFilesystem()
s, can also search for util.TempDir
and os.MkdirTemp
.
Audit all cases to use the built in temporary directory which reduces the code as well as ensures we clean up correctly at the end.
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed