fix: test

This commit is contained in:
braginini 2021-08-20 23:12:39 +02:00
parent bff137b109
commit 90ef1e939b

View File

@ -251,7 +251,7 @@ func (manager *AccountManager) AddPeer(setupKey string, peerKey string) (*Peer,
return nil, status.Errorf(codes.NotFound, "unknown setupKey %s", upperKey)
}
sk = getAccountSetupKeyByKey(account, setupKey)
sk = getAccountSetupKeyByKey(account, upperKey)
if sk == nil {
// shouldn't happen actually
return nil, status.Errorf(codes.NotFound, "unknown setupKey %s", upperKey)