Fixed a silly test bug.

geesefs-0-30-9
Aaron Jacobs 2015-03-03 14:54:22 +11:00
parent 8d9962ee62
commit 140bd18863
1 changed files with 3 additions and 3 deletions

View File

@ -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