mirror of
https://github.com/clearlinux/rkt.git
synced 2026-11-26 06:01:12 +00:00
Merge pull request #312 from gprggr/tar_test
pkg/tar: tar_test did not remove tmpdir
This commit is contained in:
@@ -101,6 +101,7 @@ func TestExtractTarInsecureSymlink(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Errorf("unexpected error: %v", err)
|
||||
}
|
||||
defer os.RemoveAll(tmpdir)
|
||||
err = ExtractTar(tr, tmpdir)
|
||||
if _, ok := err.(insecureLinkError); !ok {
|
||||
t.Errorf("expected insecureSymlinkError error")
|
||||
@@ -187,6 +188,7 @@ func TestExtractTarFolders(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Errorf("unexpected error: %v", err)
|
||||
}
|
||||
defer os.RemoveAll(tmpdir)
|
||||
err = ExtractTar(tr, tmpdir)
|
||||
if err != nil {
|
||||
t.Errorf("unexpected error: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user