pkg/system: fix cleanup in tests

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
This commit is contained in:
unclejack 2014-11-20 19:33:15 +02:00
parent bfe8d7af74
commit bdb6fee38c
3 changed files with 10 additions and 5 deletions

View file

@ -1,11 +1,13 @@
package system
import (
"os"
"testing"
)
func TestLstat(t *testing.T) {
file, invalid, _ := prepareFiles(t)
file, invalid, _, dir := prepareFiles(t)
defer os.RemoveAll(dir)
statFile, err := Lstat(file)
if err != nil {