mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-11-12 14:31:02 +00:00
Fix broken test: nil.Close()
This commit is contained in:
1 parent
b4d7f8ec55
commit
3a9ce36662
1 file changed
+1
-2
@@ -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