mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 17:22:33 +00:00
cli: tests: Clarify who cleans up tmpdir
Add a comment to clarify that the caller of testRunContainerSetup() cleans up the tmpdir. Signed-off-by: Graham Whaley <graham.whaley@intel.com>
This commit is contained in:
parent
73c8286c7e
commit
50b445cf35
@ -168,6 +168,7 @@ func testRunContainerSetup(t *testing.T) runContainerData {
|
|||||||
assert.NoError(err, "unable to start fake container workload %+v: %s", workload, err)
|
assert.NoError(err, "unable to start fake container workload %+v: %s", workload, err)
|
||||||
|
|
||||||
// temporal dir to place container files
|
// temporal dir to place container files
|
||||||
|
// Note - it is returned to the caller, who does the defer remove to clean up.
|
||||||
tmpdir, err := ioutil.TempDir("", "")
|
tmpdir, err := ioutil.TempDir("", "")
|
||||||
assert.NoError(err)
|
assert.NoError(err)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user