From 140bd1886386af277ab50d47bade818a3c2e907e Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Tue, 3 Mar 2015 14:54:22 +1100 Subject: [PATCH] Fixed a silly test bug. --- samples/memfs/memfs_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/memfs/memfs_test.go b/samples/memfs/memfs_test.go index 0a4530a..38c017e 100644 --- a/samples/memfs/memfs_test.go +++ b/samples/memfs/memfs_test.go @@ -422,13 +422,13 @@ func (t *MemFSTest) Rmdir_OpenedForReading() { // Create a new directory, with the same name even, and add some contents // within it. - err = os.MkdirAll(path.Join(t.mfs.Dir(), "foo"), 0700) + err = os.MkdirAll(path.Join(t.mfs.Dir(), "dir/foo"), 0700) AssertEq(nil, err) - err = os.MkdirAll(path.Join(t.mfs.Dir(), "bar"), 0700) + err = os.MkdirAll(path.Join(t.mfs.Dir(), "dir/bar"), 0700) AssertEq(nil, err) - err = os.MkdirAll(path.Join(t.mfs.Dir(), "baz"), 0700) + err = os.MkdirAll(path.Join(t.mfs.Dir(), "dir/baz"), 0700) AssertEq(nil, err) // Attempt to read from the directory. This should succeed even though it has