mirror of
https://github.com/minio/minio.git
synced 2025-11-29 05:19:03 -05:00
tests: Reduce two functions work to gain test time (#3712)
TestListObjectsHeal and TestFSShutdown takes around 3 min, this PR reduces the number of created test objects
This commit is contained in:
committed by
Harshavardhana
parent
310bf5bd36
commit
fd72c21e0e
@@ -77,13 +77,11 @@ func TestFSShutdown(t *testing.T) {
|
||||
removeAll(disk)
|
||||
|
||||
// Test Shutdown with faulty disk
|
||||
for i := 1; i <= 5; i++ {
|
||||
fs, disk := prepareTest()
|
||||
fs.DeleteObject(bucketName, objectName)
|
||||
removeAll(disk)
|
||||
if err := fs.Shutdown(); err != nil {
|
||||
t.Fatal(i, ", Got unexpected fs shutdown error: ", err)
|
||||
}
|
||||
fs, disk = prepareTest()
|
||||
fs.DeleteObject(bucketName, objectName)
|
||||
removeAll(disk)
|
||||
if err := fs.Shutdown(); err != nil {
|
||||
t.Fatal("Got unexpected fs shutdown error: ", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user