update golangci-lint and replace deprecated calls to io/ioutil

This commit is contained in:
Markus Muellner authored and Benj Fassbind committed 2022-12-12 10:21:39 +01:00
1 parent 71fd730598
commit 352f4e8772
23 files changed
+30 -52

No files matched your search

+1 -2
View File
@@ -3,7 +3,6 @@ package http
import (
"context"
"fmt"
"io/ioutil"
"net"
"net/http"
"os"
@@ -26,7 +25,7 @@ type GrabDownloaderSuiteBase struct {
}
func (s *GrabDownloaderSuiteBase) SetUpTest(c *C) {
s.tempfile, _ = ioutil.TempFile(os.TempDir(), "aptly-test")
s.tempfile, _ = os.CreateTemp(os.TempDir(), "aptly-test")
s.l, _ = net.ListenTCP("tcp4", &net.TCPAddr{IP: net.IPv4(127, 0, 0, 1)})
s.url = fmt.Sprintf("http://localhost:%d", s.l.Addr().(*net.TCPAddr).Port)