From a3da98b8df045f1a1e13ef81452e965a1c80144a Mon Sep 17 00:00:00 2001 From: Emily Stolfo Date: Fri, 30 Jul 2021 12:15:08 +0200 Subject: [PATCH] Remove unnecessary called var --- sourcemap/fleet_store_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/sourcemap/fleet_store_test.go b/sourcemap/fleet_store_test.go index 0dd023efece..d7596205113 100644 --- a/sourcemap/fleet_store_test.go +++ b/sourcemap/fleet_store_test.go @@ -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" @@ -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))