ForgetFSTest.Stat_ManyTimes
parent
a84040dc15
commit
ce13e404fd
|
@ -121,7 +121,19 @@ func (t *ForgetFSTest) Stat_Bar() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *ForgetFSTest) Stat_ManyTimes() {
|
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() {
|
func (t *ForgetFSTest) CreateFile() {
|
||||||
|
|
Loading…
Reference in New Issue