mirror of
https://github.com/distribution/distribution.git
synced 2025-07-17 17:03:25 +00:00
Fix some go vet errors
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
bdbb90e01f
commit
3790b5d6b4
@ -67,7 +67,7 @@ func TestValidateEndpointAmbiguousAPIVersion(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if testEndpoint.Version != APIVersion1 {
|
if testEndpoint.Version != APIVersion1 {
|
||||||
t.Fatalf("expected endpoint to validate to %s, got %s", APIVersion1, testEndpoint.Version)
|
t.Fatalf("expected endpoint to validate to %d, got %d", APIVersion1, testEndpoint.Version)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make a test server which should validate as a v2 server.
|
// Make a test server which should validate as a v2 server.
|
||||||
@ -87,6 +87,6 @@ func TestValidateEndpointAmbiguousAPIVersion(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if testEndpoint.Version != APIVersion2 {
|
if testEndpoint.Version != APIVersion2 {
|
||||||
t.Fatalf("expected endpoint to validate to %s, got %s", APIVersion2, testEndpoint.Version)
|
t.Fatalf("expected endpoint to validate to %d, got %d", APIVersion2, testEndpoint.Version)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user