mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Fix broken test: nil.Close()
This commit is contained in:
@@ -183,8 +183,7 @@ func (s *DownloaderSuite) TestDownloadTempWithChecksum(c *C) {
|
||||
defer f.Close()
|
||||
c.Assert(err, IsNil)
|
||||
|
||||
f2, err := DownloadTempWithChecksum(d, s.url+"/test", ChecksumInfo{Size: 13}, false)
|
||||
defer f2.Close()
|
||||
_, err = DownloadTempWithChecksum(d, s.url+"/test", ChecksumInfo{Size: 13}, false)
|
||||
c.Assert(err, ErrorMatches, ".*size check mismatch 12 != 13")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user