mirror of
https://github.com/minio/minio.git
synced 2025-03-29 00:33:42 -04:00
Adding comparison for footer's INIM
This commit is contained in:
parent
22ddc3dcbb
commit
1f7a3c13a5
@ -30,7 +30,7 @@ type MySuite struct{}
|
|||||||
|
|
||||||
var _ = Suite(&MySuite{})
|
var _ = Suite(&MySuite{})
|
||||||
|
|
||||||
func (s *MySuite) TestAPISuite(c *C) {
|
func (s *MySuite) TestSingleWrite(c *C) {
|
||||||
//var b io.ReadWriteSeeker
|
//var b io.ReadWriteSeeker
|
||||||
var o bytes.Buffer
|
var o bytes.Buffer
|
||||||
|
|
||||||
@ -56,9 +56,9 @@ func (s *MySuite) TestAPISuite(c *C) {
|
|||||||
// read block
|
// read block
|
||||||
|
|
||||||
// read end
|
// read end
|
||||||
// blockEnd := make([]byte, 4)
|
blockEnd := make([]byte, 4)
|
||||||
// b.Seek(int64(len(blockEnd)), 2) // jump ahead
|
b.Seek(-int64(len(blockEnd)), 2) // jump ahead
|
||||||
// b.Read(blockEnd)
|
b.Read(blockEnd)
|
||||||
// blockEndCheck := []byte{'I', 'N', 'I', 'M'}
|
blockEndCheck := []byte{'I', 'N', 'I', 'M'}
|
||||||
// c.Assert(blockEnd, DeepEquals, blockEndCheck)
|
c.Assert(blockEnd, DeepEquals, blockEndCheck)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user