| Index: server/prpc/server_test.go
|
| diff --git a/server/prpc/server_test.go b/server/prpc/server_test.go
|
| index 664896045d792cad83fb3e97a48bc7e3065461f4..4fe3828ee77b36b17f69b44e808afdebe2142aee 100644
|
| --- a/server/prpc/server_test.go
|
| +++ b/server/prpc/server_test.go
|
| @@ -11,7 +11,6 @@ import (
|
| "strconv"
|
| "testing"
|
|
|
| - "github.com/julienschmidt/httprouter"
|
| "golang.org/x/net/context"
|
| "google.golang.org/grpc"
|
| "google.golang.org/grpc/codes"
|
| @@ -19,7 +18,7 @@ import (
|
| "github.com/luci/luci-go/common/prpc"
|
| prpccommon "github.com/luci/luci-go/common/prpc"
|
| "github.com/luci/luci-go/server/auth"
|
| - "github.com/luci/luci-go/server/middleware"
|
| + "github.com/luci/luci-go/server/router"
|
|
|
| . "github.com/smartystreets/goconvey/convey"
|
| )
|
| @@ -65,8 +64,8 @@ func TestServer(t *testing.T) {
|
|
|
| Convey("Handlers", func() {
|
| c := context.Background()
|
| - r := httprouter.New()
|
| - server.InstallHandlers(r, middleware.TestingBase(c))
|
| + r := router.New()
|
| + server.InstallHandlers(r, []router.Handler{router.HandlerWithContext(c)})
|
| res := httptest.NewRecorder()
|
| hiMsg := bytes.NewBufferString(`name: "Lucy"`)
|
| req, err := http.NewRequest("POST", "/prpc/prpc.Greeter/SayHello", hiMsg)
|
|
|