ForgetFSTest.Stat_ManyTimes

geesefs-0-30-9
Aaron Jacobs 2015-03-31 10:07:43 +11:00
parent a84040dc15
commit ce13e404fd
1 changed files with 13 additions and 1 deletions

View File

@ -121,7 +121,19 @@ func (t *ForgetFSTest) Stat_Bar() {
}
func (t *ForgetFSTest) Stat_ManyTimes() {
AssertTrue(false, "TODO")
var err error
// Stat foo many times.
for i := 0; i < 100; i++ {
_, err = os.Stat(path.Join(t.Dir, "foo"))
AssertEq(nil, err)
}
// Stat bar many times.
for i := 0; i < 100; i++ {
_, err = os.Stat(path.Join(t.Dir, "bar"))
AssertEq(nil, err)
}
}
func (t *ForgetFSTest) CreateFile() {