Adding tests and fixes for multipart uploads uncovered from tests

This commit is contained in:
Frederick F. Kautz IV
2015-05-09 17:42:14 -07:00
parent 0c54f99674
commit 058604aa21
4 changed files with 113 additions and 5 deletions

View File

@@ -65,7 +65,10 @@ func (m *Driver) GetObject(w io.Writer, bucket, object string) (int64, error) {
r1 := ret.Error(1)
if r1 == nil {
if obj, ok := m.ObjectWriterData[bucket+":"+object]; ok {
n, _ := io.Copy(w, bytes.NewBuffer(obj))
n, err := io.Copy(w, bytes.NewBuffer(obj))
if err != nil {
panic(err)
}
r0 = n
}
}