Skip to content

Commit

Permalink
cli: tests: Clarify who cleans up tmpdir
Browse files Browse the repository at this point in the history
Add a comment to clarify that the caller of
testRunContainerSetup() cleans up the tmpdir.

Signed-off-by: Graham Whaley <[email protected]>
  • Loading branch information
Graham Whaley committed Jul 23, 2018
1 parent 73c8286 commit 50b445c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ func testRunContainerSetup(t *testing.T) runContainerData {
assert.NoError(err, "unable to start fake container workload %+v: %s", workload, err)

// 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("", "")
assert.NoError(err)

Expand Down

0 comments on commit 50b445c

Please sign in to comment.