mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Fix flaky TestXLStorageVerifyFile (#10398)
`TestXLStorageVerifyFile` would fail 1 in 256 if the first random character was 'a'. Instead write 256 bytes which has 1 in 256^256 probability.
This commit is contained in:
parent
37da0c647e
commit
9a1615768d
@ -1704,7 +1704,8 @@ func TestXLStorageVerifyFile(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if _, err := f.WriteString("a"); err != nil {
|
||||
// Replace first 256 with 'a'.
|
||||
if _, err := f.WriteString(strings.Repeat("a", 256)); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
f.Close()
|
||||
|
Loading…
Reference in New Issue
Block a user