distribution: use registry consts for API version in tests

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-08-29 10:58:38 +02:00
parent 8d404ac408
commit 4e4f62b6db
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
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,