chore: remove usage of github.com/go-chi/render (#17324)

This commit is contained in:
ケイラ
2025-04-09 14:35:10 -07:00
committed by GitHub
parent 0b58798a1a
commit f2fb0caf46
+2 -3
View File
@@ -21,7 +21,6 @@ import (
"testing"
"time"
"github.com/go-chi/render"
"github.com/stretchr/testify/require"
"github.com/coder/coder/v2/testutil"
@@ -141,8 +140,8 @@ func serveScript(t *testing.T, in string) string {
t.Helper()
srv := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
render.Status(r, http.StatusOK)
render.Data(rw, r, []byte(in))
rw.WriteHeader(http.StatusOK)
_, _ = rw.Write([]byte(in))
}))
t.Cleanup(srv.Close)
srvURL, err := url.Parse(srv.URL)