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:
Anis Elleuch
2017-02-07 21:51:23 +01:00
committed by Harshavardhana
parent 310bf5bd36
commit fd72c21e0e
2 changed files with 17 additions and 17 deletions

View File

@@ -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)
}
}