From 1f7a3c13a50b8214b452f6cf6ea90ff9636dad5a Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Fri, 27 Feb 2015 12:39:52 -0800 Subject: [PATCH] Adding comparison for footer's INIM --- pkg/storage/donut/v1/donut_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/storage/donut/v1/donut_test.go b/pkg/storage/donut/v1/donut_test.go index 54a4149f1..8d521d2d9 100644 --- a/pkg/storage/donut/v1/donut_test.go +++ b/pkg/storage/donut/v1/donut_test.go @@ -30,7 +30,7 @@ type MySuite struct{} var _ = Suite(&MySuite{}) -func (s *MySuite) TestAPISuite(c *C) { +func (s *MySuite) TestSingleWrite(c *C) { //var b io.ReadWriteSeeker var o bytes.Buffer @@ -56,9 +56,9 @@ func (s *MySuite) TestAPISuite(c *C) { // read block // read end - // blockEnd := make([]byte, 4) - // b.Seek(int64(len(blockEnd)), 2) // jump ahead - // b.Read(blockEnd) - // blockEndCheck := []byte{'I', 'N', 'I', 'M'} - // c.Assert(blockEnd, DeepEquals, blockEndCheck) + blockEnd := make([]byte, 4) + b.Seek(-int64(len(blockEnd)), 2) // jump ahead + b.Read(blockEnd) + blockEndCheck := []byte{'I', 'N', 'I', 'M'} + c.Assert(blockEnd, DeepEquals, blockEndCheck) }