From 63b5c45cb67887af7c4a409e3e58377f9968a4fd Mon Sep 17 00:00:00 2001 From: Tan Jiang Date: Tue, 7 Mar 2017 20:56:02 +0800 Subject: [PATCH] fix test failure --- cmd/notary/tuf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/notary/tuf.go b/cmd/notary/tuf.go index b6add17276..1b624d8510 100644 --- a/cmd/notary/tuf.go +++ b/cmd/notary/tuf.go @@ -884,7 +884,7 @@ func tokenAuth(trustServerURL string, baseTransport *http.Transport, gun data.GU if endpoint.Scheme == "" { return nil, fmt.Errorf("Trust server url has to be in the form of http(s)://URL:PORT. Got: %s", trustServerURL) } - subPath, err := url.Parse(path.Join(endpoint.Path, "/v2/")) + subPath, err := url.Parse(path.Join(endpoint.Path, "/v2") + "/") if err != nil { return nil, fmt.Errorf("Failed to parse v2 subpath. This error should not have been reached. Please report it as an issue at https://github.com/docker/notary/issues: %s", err.Error()) }