Merge pull request #709 from hopkings2008/master
Close reader after the test is finished.
This commit is contained in:
commit
e04ea232b5
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue