Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b58798 commit f2fb0caCopy full SHA for f2fb0ca
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