mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: remove usage of github.com/go-chi/render (#17324)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user