From feebd69d26df453d60427018af086198d800c71a Mon Sep 17 00:00:00 2001 From: yuzou Date: Fri, 17 Jul 2015 14:55:31 +0800 Subject: [PATCH] Close reader after the test is finished. Signed-off-by: yuzou --- docs/storage/driver/testsuites/testsuites.go | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/storage/driver/testsuites/testsuites.go b/docs/storage/driver/testsuites/testsuites.go index 96231480..770c428c 100644 --- a/docs/storage/driver/testsuites/testsuites.go +++ b/docs/storage/driver/testsuites/testsuites.go @@ -258,6 +258,7 @@ func (suite *DriverSuite) TestWriteReadLargeStreams(c *check.C) { reader, err := suite.StorageDriver.ReadStream(suite.ctx, filename, 0) c.Assert(err, check.IsNil) + defer reader.Close() writtenChecksum := sha1.New() io.Copy(writtenChecksum, reader)