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