Skip to content

Commit 679497d

Browse files
fix
1 parent 667d65d commit 679497d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cmd/extensions/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ func mockListServer(t *testing.T, validResponse bool, expectedCompanyID string)
151151
}
152152

153153
func mockDeleteServer(t *testing.T, validResponse bool, expectedCompanyID, expectedExtensionID string) *httptest.Server {
154+
t.Helper()
154155
return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
155156
if r.RequestURI != fmt.Sprintf(deleteAPIFmt, expectedCompanyID, expectedExtensionID) && r.Method != http.MethodGet {
156157
w.WriteHeader(http.StatusNotFound)
157158
require.Fail(t, "unsupported call")
158159
return
159160
}
160161
if validResponse {
161-
w.WriteHeader(http.StatusOK)
162162
w.WriteHeader(http.StatusNoContent)
163163
return
164164
}

0 commit comments

Comments
 (0)