We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc29156 + f2fb0ca commit 5e60dcaCopy full SHA for 5e60dca
provisionersdk/agent_test.go
@@ -21,7 +21,6 @@ import (
21
"testing"
22
"time"
23
24
- "github.com/go-chi/render"
25
"github.com/stretchr/testify/require"
26
27
"github.com/coder/coder/v2/testutil"
@@ -141,8 +140,8 @@ func serveScript(t *testing.T, in string) string {
141
140
t.Helper()
142
143
srv := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
144
- render.Status(r, http.StatusOK)
145
- render.Data(rw, r, []byte(in))
+ rw.WriteHeader(http.StatusOK)
+ _, _ = rw.Write([]byte(in))
146
}))
147
t.Cleanup(srv.Close)
148
srvURL, err := url.Parse(srv.URL)
0 commit comments