diff --git a/integration/get_test.go b/integration/get_test.go index 8794651..81d8488 100644 --- a/integration/get_test.go +++ b/integration/get_test.go @@ -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) { diff --git a/integration/main_test.go b/integration/main_test.go index 06d553f..406b33a 100644 --- a/integration/main_test.go +++ b/integration/main_test.go @@ -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 {