Merge pull request #709 from hopkings2008/master

Close reader after the test is finished.
This commit is contained in:
Stephen Day 2015-07-22 12:22:22 -07:00
commit e04ea232b5

View File

@ -258,6 +258,7 @@ func (suite *DriverSuite) TestWriteReadLargeStreams(c *check.C) {
reader, err := suite.StorageDriver.ReadStream(suite.ctx, filename, 0) reader, err := suite.StorageDriver.ReadStream(suite.ctx, filename, 0)
c.Assert(err, check.IsNil) c.Assert(err, check.IsNil)
defer reader.Close()
writtenChecksum := sha1.New() writtenChecksum := sha1.New()
io.Copy(writtenChecksum, reader) io.Copy(writtenChecksum, reader)