Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
cli: update_test: defer remove tmpfile
Browse files Browse the repository at this point in the history
Ensure we remove the tmpfile used for testing.

Signed-off-by: Graham Whaley <[email protected]>
  • Loading branch information
Graham Whaley authored and Eric Ernst committed Aug 23, 2018
1 parent a712155 commit b0e5614
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func TestUpdateCLIFailure(t *testing.T) {

// json decode error
f, err := ioutil.TempFile("", "resources")
defer os.Remove(f.Name())
assert.NoError(err)
assert.NotNil(f)
f.WriteString("no json")
Expand Down

0 comments on commit b0e5614

Please sign in to comment.