tests: Add missing unit test for posix.ReadFile. (#2319)

This commit is contained in:
Harshavardhana
2016-07-28 21:57:11 -07:00
committed by GitHub
parent 50dae0ab04
commit cf9ba7b88f
4 changed files with 203 additions and 15 deletions
+4 -2
View File
@@ -83,8 +83,10 @@ func shutdownFS(storage StorageAPI) {
os.Exit(1)
}
if err = storage.DeleteVol(minioMetaBucket); err != nil {
errorIf(err, "Unable to delete minio meta bucket", minioMetaBucket)
os.Exit(1)
if err != errVolumeNotEmpty {
errorIf(err, "Unable to delete minio meta bucket %s", minioMetaBucket)
os.Exit(1)
}
}
// Successful exit.
os.Exit(0)