Fix test server to TestGetBlocks

pull/9/head
178inaba 2017-04-15 04:09:33 +09:00
parent 920eb1ad5a
commit d61ce1c241
1 changed files with 0 additions and 4 deletions

View File

@ -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
}))