Skip to content

Commit

Permalink
chore(deps): remove unused dependency github.com/pkg/errors (#3110)
Browse files Browse the repository at this point in the history
  • Loading branch information
geigerj0 authored Jul 30, 2024
1 parent cbae3b0 commit b1aceac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/autoscaler/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ require (
github.com/onsi/gomega v1.33.1
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/pivotal-cf/brokerapi/v11 v11.0.4
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.19.1
github.com/rubyist/circuitbreaker v2.2.1+incompatible
github.com/steinfletcher/apitest v1.5.16
Expand Down
4 changes: 2 additions & 2 deletions src/autoscaler/healthendpoint/health_readiness_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package healthendpoint_test

import (
"errors"
"io"
"net/http"
"net/url"
Expand All @@ -9,7 +10,6 @@ import (
"time"

"code.cloudfoundry.org/app-autoscaler/src/autoscaler/helpers"
"github.com/pkg/errors"

"code.cloudfoundry.org/app-autoscaler/src/autoscaler/healthendpoint"
"code.cloudfoundry.org/lager/v3"
Expand Down Expand Up @@ -243,7 +243,7 @@ var _ = Describe("Health Readiness", func() {
BeforeEach(func() {

dbUpFunc := healthendpoint.DbChecker("policy", &testPinger{error: nil})
dbDownFunc := healthendpoint.DbChecker("instance-db", &testPinger{error: errors.Errorf("DB is DOWN")})
dbDownFunc := healthendpoint.DbChecker("instance-db", &testPinger{error: errors.New("DB is DOWN")})

serverDownFunc := func() healthendpoint.ReadinessCheck {
return healthendpoint.ReadinessCheck{Name: "instance", Type: "server", Status: "DOWN"}
Expand Down

0 comments on commit b1aceac

Please sign in to comment.