Update test to expect additional legacy trusted key

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
Brad Davidson 2024-12-03 11:32:19 +00:00
parent e4835f759a
commit 4c82daa1be
No known key found for this signature in database
GPG Key ID: FFB7A9376A9349B9

View File

@ -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)
}
}