Skip to content

Commit 5e60dca

Browse files
authored
Merge branch 'main' into jon/terraform-1.11.4
2 parents cc29156 + f2fb0ca commit 5e60dca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

provisionersdk/agent_test.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"testing"
2222
"time"
2323

24-
"github.com/go-chi/render"
2524
"github.com/stretchr/testify/require"
2625

2726
"github.com/coder/coder/v2/testutil"
@@ -141,8 +140,8 @@ func serveScript(t *testing.T, in string) string {
141140
t.Helper()
142141

143142
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))
143+
rw.WriteHeader(http.StatusOK)
144+
_, _ = rw.Write([]byte(in))
146145
}))
147146
t.Cleanup(srv.Close)
148147
srvURL, err := url.Parse(srv.URL)

0 commit comments

Comments
 (0)