windows: Enable erasure test for windows. (#1432)

Fixes #1363
This commit is contained in:
Harshavardhana 2016-04-30 02:52:23 -07:00
parent 84afec9ae0
commit ac2933c799

View File

@ -22,7 +22,6 @@ import (
"encoding/hex"
"io"
"math/rand"
"runtime"
"strconv"
"gopkg.in/check.v1"
@ -277,9 +276,7 @@ func testObjectOverwriteWorks(c *check.C, create func() ObjectLayer) {
c.Assert(err, check.IsNil)
_, e := io.Copy(&bytesBuffer, r)
c.Assert(e, check.IsNil)
if runtime.GOOS != "windows" {
c.Assert(string(bytesBuffer.Bytes()), check.Equals, "The specified multipart upload does not exist. The upload ID might be invalid, or the multipart upload might have been aborted or completed.")
}
c.Assert(string(bytesBuffer.Bytes()), check.Equals, "The specified multipart upload does not exist. The upload ID might be invalid, or the multipart upload might have been aborted or completed.")
c.Assert(r.Close(), check.IsNil)
}