From d61ce1c2415dd23bb77814b4e50273d823179d53 Mon Sep 17 00:00:00 2001 From: 178inaba <178inaba@users.noreply.github.com> Date: Sat, 15 Apr 2017 04:09:33 +0900 Subject: [PATCH] Fix test server to TestGetBlocks --- accounts_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/accounts_test.go b/accounts_test.go index f68b31a..0dc8a82 100644 --- a/accounts_test.go +++ b/accounts_test.go @@ -9,10 +9,6 @@ import ( func TestGetBlocks(t *testing.T) { ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - if r.URL.Path != "/api/v1/blocks" { - http.Error(w, http.StatusText(http.StatusNotFound), http.StatusNotFound) - return - } fmt.Fprintln(w, `[{"Username": "foo"}, {"Username": "bar"}]`) return }))