mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-23 01:04:25 +01: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:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user