Update api/api_test.go

Co-authored-by: Herman Slatman <hslatman@users.noreply.github.com>
This commit is contained in:
Max 2022-11-29 10:18:33 -08:00 committed by GitHub
parent 2349a7a7fb
commit 8df01c60c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -407,7 +407,7 @@ func (m *mockAuthority) Version() authority.Version {
}
func (m *mockAuthority) Capabilities() authority.Capabilities {
if m.version != nil {
if m.capabilities != nil {
return m.capabilities()
}
return m.ret1.(authority.Capabilities)