Fix broken test: nil.Close()

This commit is contained in:
Andrey Smirnov
2014-02-03 21:18:30 +04:00
parent b4d7f8ec55
commit 3a9ce36662
+1 -2
View File
@@ -183,8 +183,7 @@ func (s *DownloaderSuite) TestDownloadTempWithChecksum(c *C) {
defer f.Close() defer f.Close()
c.Assert(err, IsNil) c.Assert(err, IsNil)
f2, err := DownloadTempWithChecksum(d, s.url+"/test", ChecksumInfo{Size: 13}, false) _, err = DownloadTempWithChecksum(d, s.url+"/test", ChecksumInfo{Size: 13}, false)
defer f2.Close()
c.Assert(err, ErrorMatches, ".*size check mismatch 12 != 13") c.Assert(err, ErrorMatches, ".*size check mismatch 12 != 13")
} }