distribution: use registry consts for API version in tests
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
8d404ac408
commit
4e4f62b6db
2 changed files with 2 additions and 2 deletions
|
@ -331,7 +331,7 @@ func testNewPuller(t *testing.T, rawurl string) *puller {
|
|||
endpoint := registry.APIEndpoint{
|
||||
Mirror: false,
|
||||
URL: uri,
|
||||
Version: 2,
|
||||
Version: registry.APIVersion2,
|
||||
Official: false,
|
||||
TrimHostname: false,
|
||||
TLSConfig: nil,
|
||||
|
|
|
@ -43,7 +43,7 @@ func testTokenPassThru(t *testing.T, ts *httptest.Server) {
|
|||
endpoint := registrypkg.APIEndpoint{
|
||||
Mirror: false,
|
||||
URL: uri,
|
||||
Version: 2,
|
||||
Version: registrypkg.APIVersion2,
|
||||
Official: false,
|
||||
TrimHostname: false,
|
||||
TLSConfig: nil,
|
||||
|
|
Loading…
Reference in a new issue