Run part of the readwrite test multiple times for stress testing
@@ -126,6 +126,7 @@ func TestReadAfterWrite(t *testing.T) {
return
}
+ for i := 0; i < 10; i++ {
tmpFile, err := ioutil.TempFile(tmpDir, "tmpFile")
if err != nil {
t.Errorf("Create file at %q: %v", tmpDir, err)
@@ -154,3 +155,4 @@ func TestReadAfterWrite(t *testing.T) {
t.Errorf("File content %q not match %q", got, want)
}
}
+}
