mirror of https://github.com/hashicorp/consul
tests: ensure that the ServiceExists helper function normalizes entmeta (#8025)
This fixes a unit test failure over in enterprise due to https://github.com/hashicorp/consul/pull/7384pull/8029/head
parent
b88bd6660e
commit
9cfa4a3fc9
|
@ -487,6 +487,8 @@ func (l *State) AddAliasCheck(checkID structs.CheckID, srcServiceID structs.Serv
|
|||
|
||||
// ServiceExists return true if the given service does exists
|
||||
func (l *State) ServiceExists(serviceID structs.ServiceID) bool {
|
||||
serviceID.EnterpriseMeta.Normalize()
|
||||
|
||||
l.Lock()
|
||||
defer l.Unlock()
|
||||
return l.services[serviceID] != nil
|
||||
|
|
Loading…
Reference in New Issue