chore: add error check

This commit is contained in:
Logan.Price 2019-09-30 08:39:48 -05:00 committed by Cole Wippern
parent c5a29962f2
commit 812c66ecc0
1 changed files with 3 additions and 0 deletions

View File

@ -581,6 +581,9 @@ func Test_unTar(t *testing.T) {
for _, tc := range tcs {
t.Run(tc.name, func(t *testing.T) {
testDir, err := ioutil.TempDir("", "")
if err != nil {
t.Fatal(err)
}
defer os.RemoveAll(testDir)
if err := createUncompressedTar(tc.setupTarContents, tc.tarFileName, testDir); err != nil {
t.Fatal(err)