mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-09 06:04:12 +00:00
go1.24: fix lint, unit and system tests
- development env: base on debian trixie with go1.24 - lint: run with default config - fix lint errors - fix unit tests - fix system test
This commit is contained in:
+2
-2
@@ -21,7 +21,7 @@ func (s *ListSuite) TestList(c *check.C) {
|
||||
return nil, nil
|
||||
})
|
||||
c.Assert(err, check.IsNil)
|
||||
list.WaitForTaskByID(task.ID)
|
||||
_, _ = list.WaitForTaskByID(task.ID)
|
||||
|
||||
tasks := list.GetTasks()
|
||||
c.Assert(len(tasks), check.Equals, 1)
|
||||
@@ -38,7 +38,7 @@ func (s *ListSuite) TestList(c *check.C) {
|
||||
return nil, errors.New("Task failed")
|
||||
})
|
||||
c.Assert(err, check.IsNil)
|
||||
list.WaitForTaskByID(task.ID)
|
||||
_, _ = list.WaitForTaskByID(task.ID)
|
||||
|
||||
tasks = list.GetTasks()
|
||||
c.Assert(len(tasks), check.Equals, 2)
|
||||
|
||||
Reference in New Issue
Block a user