Skip to content

Commit

Permalink
Remove unnecessary called var
Browse files Browse the repository at this point in the history
  • Loading branch information
estolfo committed Jul 30, 2021
1 parent d2034fa commit a3da98b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sourcemap/fleet_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ func TestFleetFetch(t *testing.T) {

func TestFailedAndSuccessfulFleetHostsFetch(t *testing.T) {
var (
called int32
apikey = "supersecret"
name = "webapp"
version = "1.0.0"
Expand All @@ -99,13 +98,11 @@ func TestFailedAndSuccessfulFleetHostsFetch(t *testing.T) {
)

hError := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
atomic.AddInt32(&called, 1)
http.Error(w, "err", http.StatusInternalServerError)
})
ts0 := httptest.NewServer(hError)

h := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
atomic.AddInt32(&called, 1)
wr := zlib.NewWriter(w)
defer wr.Close()
wr.Write([]byte(resp))
Expand Down

0 comments on commit a3da98b

Please sign in to comment.