From 54104ade2139e1887406bb94a0f0fab5d63b49af Mon Sep 17 00:00:00 2001 From: Peter Bourgon <peter@bourgon.org> Date: Tue, 26 May 2015 15:50:25 +0200 Subject: [PATCH] Fix TestAPITopology --- app/api_topologies_test.go | 2 +- app/scope_test.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/api_topologies_test.go b/app/api_topologies_test.go index ea76bb1b98..0c9b67da4e 100644 --- a/app/api_topologies_test.go +++ b/app/api_topologies_test.go @@ -15,7 +15,7 @@ func TestAPITopology(t *testing.T) { if err := json.Unmarshal(body, &topos); err != nil { t.Fatalf("JSON parse error: %s", err) } - equals(t, 2, len(topos)) + equals(t, 3, len(topos)) for _, topo := range topos { is200(t, ts, topo.URL) if topo.GroupedURL != "" { diff --git a/app/scope_test.go b/app/scope_test.go index a9d9caa943..68d350ae18 100644 --- a/app/scope_test.go +++ b/app/scope_test.go @@ -69,7 +69,6 @@ func checkRequest(t *testing.T, ts *httptest.Server, method, path string, body [ // getRawJSON GETs a file, checks it is JSON, and returns the non-parsed body func getRawJSON(t *testing.T, ts *httptest.Server, path string) []byte { - res, body := checkGet(t, ts, path) if res.StatusCode != 200 {