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) {
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)
assert.NoError(t, err)
if !assert.NotNil(t, resp) {

View File

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