From 3c51231761dc656960ecdf9fc5ef5e3e71139e05 Mon Sep 17 00:00:00 2001 From: bep Date: Mon, 15 Feb 2016 12:13:46 +0100 Subject: [PATCH] Fix broken Windows tests @spf13 having a CI on Windows is only useful if you actually look at the build output. --- composite_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composite_test.go b/composite_test.go index ed19fcd..2663574 100644 --- a/composite_test.go +++ b/composite_test.go @@ -253,6 +253,7 @@ func TestNestedDirOverlayOsFsReaddir(t *testing.T) { // Opening nested dir only in the overlay fh, _ = ufs.Open("/home/test/foo") list, err := fh.Readdir(-1) + fh.Close() if err != nil { t.Errorf("Readdir failed", err) } @@ -288,6 +289,7 @@ func TestCopyOnWriteFsWithOsFs(t *testing.T) { fh, _ = ufs.Open("/home/test") files, err := fh.Readdirnames(-1) + fh.Close() if err != nil { t.Errorf("Readdirnames failed") } @@ -297,6 +299,7 @@ func TestCopyOnWriteFsWithOsFs(t *testing.T) { fh, _ = overlay.Open("/home/test") files, err = fh.Readdirnames(-1) + fh.Close() if err != nil { t.Errorf("Readdirnames failed") }