Merge pull request #46357 from thaJeztah/distribution_use_the_const
distribution: use registry consts for API version in tests
This commit is contained in:
commit
1f5322a94e
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…
Add table
Reference in a new issue