Rename "status" command to "server-status"

This commit is contained in:
Marc Di Luzio 2020-07-04 23:05:08 +01:00
parent 98eea89484
commit f8e594cb39
8 changed files with 125 additions and 122 deletions

View file

@ -61,10 +61,10 @@ func (s Server) Request(method, path string, in, out interface{}) error {
var serv = Server(os.Getenv("ROVE_HTTP"))
func TestServer_Status(t *testing.T) {
req := &rove.StatusRequest{}
resp := &rove.StatusResponse{}
if err := serv.Request("GET", "status", req, resp); err != nil {
func TestServer_ServerStatus(t *testing.T) {
req := &rove.ServerStatusRequest{}
resp := &rove.ServerStatusResponse{}
if err := serv.Request("GET", "server-status", req, resp); err != nil {
log.Fatal(err)
}
}