Skip to content

Commit

Permalink
fix: remove extra slash when constructing member cluster URL to adapt…
Browse files Browse the repository at this point in the history
… the apiEndpoint of the cluster object ends with a slash.

Signed-off-by: 圣朋 <sp441185@alibaba-inc.com>
  • Loading branch information
spiritNO1 committed Oct 4, 2024
1 parent 6e725e5 commit c5f4d36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/registry/cluster/storage/aggregate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ func TestRequestURL(t *testing.T) {
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
proxyRequestInfo := lifted.NewRequestInfo(&tt.request)
request := tt.request
proxyRequestInfo := lifted.NewRequestInfo(&request)
location, _ := url.Parse(tt.urlString)
requestURL := requestURLStr(location, proxyRequestInfo)
require.Equal(t, tt.want, requestURL)
Expand Down

0 comments on commit c5f4d36

Please sign in to comment.