Commit ce3f09e5 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fs: simplify TestReadDirStress

Change-Id: I609fbb036913148e77f4350ec8d816373fe13d09
parent 0589b29a
......@@ -232,12 +232,11 @@ func TestReadDirStress(t *testing.T) {
return
}
_, err = f.Readdirnames(-1)
f.Close()
if err != nil {
t.Errorf("goroutine %d iteration %d: %v", gr, i, err)
f.Close()
return
}
f.Close()
}
}
......@@ -247,6 +246,7 @@ func TestReadDirStress(t *testing.T) {
go stress(i)
}
wg.Wait()
}
// This test is racy. If an external process consumes space while this
......
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