mirror of
https://github.com/distribution/distribution.git
synced 2025-08-27 10:59:02 +00:00
Update test to expect additional legacy trusted key
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
parent
e4835f759a
commit
4c82daa1be
@ -143,8 +143,8 @@ func TestRootCertIncludedInTrustedKeys(t *testing.T) {
|
||||
// newAccessController return type is an interface built from
|
||||
// accessController struct. The type check can be safely ignored.
|
||||
ac2, _ := ac.(*accessController)
|
||||
if got := len(ac2.trustedKeys); got != 1 {
|
||||
t.Fatalf("Unexpected number of trusted keys, expected 1 got: %d", got)
|
||||
if got := len(ac2.trustedKeys); got != 2 {
|
||||
t.Fatalf("Unexpected number of trusted keys, expected 2 got: %d", got)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user