mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-11-12 14:31:02 +00:00
Fix lint issues in architecture variant tests
This commit is contained in:
1 parent
673b4f02d8
commit
8fb07c7e9c
2 files changed
+6
-2
No files matched your search
@@ -73,7 +73,7 @@ func (s *SnapshotsSuite) TestGetSnapshotsHandlesConcurrentDeletion(c *C) {
|
||||
|
||||
// Pull must load the destination references before inferring architectures or
|
||||
// preserving existing packages. Both fixtures are ordinary amd64 packages.
|
||||
func (_ *SnapshotsSuite) TestPullPreservesDestinationPackages(c *C) {
|
||||
func (*SnapshotsSuite) TestPullPreservesDestinationPackages(c *C) {
|
||||
savedConfig, savedContext := utils.Config, context
|
||||
defer func() { utils.Config, context = savedConfig, savedContext }()
|
||||
dir := c.MkDir()
|
||||
|
||||
@@ -14,7 +14,11 @@ func TestArchitectureVariantQueries(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer db.Close()
|
||||
defer func() {
|
||||
if err := db.Close(); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
}()
|
||||
collection := deb.NewPackageCollection(db)
|
||||
list := deb.NewPackageList()
|
||||
const normal = "test-package_1.0_amd64"
|
||||
|
||||
Reference in new issue
Block a user