Skip to content

Commit

Permalink
backport of commit d0d1a1c
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 committed Apr 21, 2023
1 parent 8758178 commit 93a925f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/agent/agent_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func TestHTTP_AgentJoin(t *testing.T) {
httpTest(t, nil, func(s *TestAgent) {
// Determine the join address
member := s.Agent.Server().LocalMember()
addr := net.JoinHostPort(string(member.Addr), strconv.Itoa(int(member.Port)))
addr := net.JoinHostPort(member.Addr.String(), strconv.Itoa(int(member.Port)))

// Make the HTTP request
req, err := http.NewRequest("PUT",
Expand Down

0 comments on commit 93a925f

Please sign in to comment.