Skip to content

Commit 1bb9edb

Browse files
fix: remove unused test server in TestNewAuthClient
Remove dead httptest.NewServer that was created but never used by any subtests in TestNewAuthClient. Signed-off-by: Ogulcan Aydogan <ogulcanaydogan@hotmail.com>
1 parent 26d117d commit 1bb9edb

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

internal/httputil/client_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ import (
2424
)
2525

2626
func TestNewAuthClient(t *testing.T) {
27-
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
28-
w.WriteHeader(http.StatusOK)
29-
}))
30-
defer ts.Close()
31-
3227
t.Run("nil client", func(t *testing.T) {
3328
client := NewAuthClient(context.Background(), nil)
3429
if client == nil {

0 commit comments

Comments
 (0)