Merge pull request #46357 from thaJeztah/distribution_use_the_const

distribution: use registry consts for API version in tests
This commit is contained in:
Sebastiaan van Stijn 2023-08-29 12:29:06 +02:00 committed by GitHub
commit 1f5322a94e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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,