Fix linting

This commit is contained in:
Gusted 2022-11-15 16:09:47 +01:00
parent 202c950398
commit a3994cf029
No known key found for this signature in database
GPG key ID: FD821B732837125F
2 changed files with 2 additions and 2 deletions

View file

@ -124,7 +124,7 @@ func TestLFSSupport(t *testing.T) {
func TestGetOptions(t *testing.T) { func TestGetOptions(t *testing.T) {
log.Println("=== TestGetOptions ===") log.Println("=== TestGetOptions ===")
req, _ := http.NewRequest(http.MethodOptions, "https://mock-pages.codeberg-test.org:4430/README.md", nil) req, _ := http.NewRequest(http.MethodOptions, "https://mock-pages.codeberg-test.org:4430/README.md", http.NoBody)
resp, err := getTestHTTPSClient().Do(req) resp, err := getTestHTTPSClient().Do(req)
assert.NoError(t, err) assert.NoError(t, err)
if !assert.NotNil(t, resp) { if !assert.NotNil(t, resp) {

View file

@ -28,7 +28,7 @@ func TestMain(m *testing.M) {
time.Sleep(10 * time.Second) time.Sleep(10 * time.Second)
os.Exit(m.Run()) m.Run()
} }
func startServer(ctx context.Context) error { func startServer(ctx context.Context) error {