Commit e22f698d authored by Aaron Jacobs's avatar Aaron Jacobs

ErrorFSTest.OpenDir

parent e6a4db99
...@@ -83,7 +83,10 @@ func (t *ErrorFSTest) ReadFile() { ...@@ -83,7 +83,10 @@ func (t *ErrorFSTest) ReadFile() {
} }
func (t *ErrorFSTest) OpenDir() { func (t *ErrorFSTest) OpenDir() {
AssertTrue(false, "TODO") t.fs.SetError(reflect.TypeOf(&fuseops.OpenDirOp{}), syscall.EOWNERDEAD)
_, err := os.Open(t.Dir)
ExpectThat(err, Error(MatchesRegexp("open.*: .*owner died")))
} }
func (t *ErrorFSTest) ReadDir() { func (t *ErrorFSTest) ReadDir() {
......
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