Commit 7ed279d7 authored by Aaron Jacobs's avatar Aaron Jacobs

HelloFSTest.ReadDir_NonExistent

parent 39e09d6b
...@@ -15,6 +15,7 @@ import ( ...@@ -15,6 +15,7 @@ import (
"github.com/jacobsa/fuse" "github.com/jacobsa/fuse"
"github.com/jacobsa/fuse/samples" "github.com/jacobsa/fuse/samples"
"github.com/jacobsa/gcsfuse/timeutil" "github.com/jacobsa/gcsfuse/timeutil"
. "github.com/jacobsa/oglematchers"
. "github.com/jacobsa/ogletest" . "github.com/jacobsa/ogletest"
"golang.org/x/net/context" "golang.org/x/net/context"
) )
...@@ -130,7 +131,10 @@ func (t *HelloFSTest) ReadDir_Dir() { ...@@ -130,7 +131,10 @@ func (t *HelloFSTest) ReadDir_Dir() {
} }
func (t *HelloFSTest) ReadDir_NonExistent() { func (t *HelloFSTest) ReadDir_NonExistent() {
AssertTrue(false, "TODO") _, err := ioutil.ReadDir(path.Join(t.mfs.Dir(), "foobar"))
AssertNe(nil, err)
ExpectThat(err, Error(HasSubstr("no such file")))
} }
func (t *HelloFSTest) Stat_Hello() { func (t *HelloFSTest) Stat_Hello() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment