File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -134,10 +134,11 @@ func TestExtractProvisionerDaemonAuthenticated(t *testing.T) {
134
134
r .Header .Set (codersdk .ProvisionerDaemonPSK , test .provisionerPSK )
135
135
}
136
136
137
- httpmw .ExtractProvisionerDaemonAuthenticated (test .opts )(http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
137
+ httpmw .ExtractProvisionerDaemonAuthenticated (test .opts )(http .HandlerFunc (func (w http.ResponseWriter , _ * http.Request ) {
138
138
w .WriteHeader (http .StatusOK )
139
139
})).ServeHTTP (res , r )
140
140
141
+ //nolint:bodyclose
141
142
require .Equal (t , test .expectedStatusCode , res .Result ().StatusCode )
142
143
if test .expectedResponseMessage != "" {
143
144
require .Contains (t , res .Body .String (), test .expectedResponseMessage )
@@ -215,5 +216,4 @@ func TestExtractProvisionerDaemonAuthenticated(t *testing.T) {
215
216
// require.Equal(t, http.StatusUnauthorized, res.Result().StatusCode)
216
217
// require.Contains(t, res.Body.String(), "provisioner daemon key invalid")
217
218
// })
218
-
219
219
}
You can’t perform that action at this time.
0 commit comments