Rename Handlers -> Router

This commit is contained in:
Martin Polden
2016-10-09 16:18:38 +02:00
parent d560f6108a
commit b1b3fbb5f3
3 changed files with 6 additions and 9 deletions

View File

@ -48,7 +48,7 @@ func httpGet(url string, json bool, userAgent string) (string, int, error) {
func TestCLIHandlers(t *testing.T) {
log.SetOutput(ioutil.Discard)
s := httptest.NewServer(newTestAPI().Handlers())
s := httptest.NewServer(newTestAPI().Router())
var tests = []struct {
url string
@ -79,7 +79,7 @@ func TestCLIHandlers(t *testing.T) {
func TestJSONHandlers(t *testing.T) {
log.SetOutput(ioutil.Discard)
s := httptest.NewServer(newTestAPI().Handlers())
s := httptest.NewServer(newTestAPI().Router())
var tests = []struct {
url string