Skip to content

Commit

Permalink
Align TestAgent_RegisterService_InvalidAddress with reality
Browse files Browse the repository at this point in the history
  • Loading branch information
magiconair authored and slackpad committed Sep 25, 2017
1 parent e4f3815 commit 923e359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/agent_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ func TestAgent_RegisterService_InvalidAddress(t *testing.T) {
Address: addr,
Port: 8000,
}
req, _ := http.NewRequest("GET", "/v1/agent/service/register?token=abc123", jsonReader(args))
req, _ := http.NewRequest("PUT", "/v1/agent/service/register?token=abc123", jsonReader(args))
resp := httptest.NewRecorder()
_, err := a.srv.AgentRegisterService(resp, req)
if err != nil {
Expand Down

0 comments on commit 923e359

Please sign in to comment.