Skip to content

Commit

Permalink
tests: ensure that the ServiceExists helper function normalizes entme…
Browse files Browse the repository at this point in the history
…ta (#8025)

This fixes a unit test failure over in enterprise due to #7384
  • Loading branch information
rboyer authored Jun 5, 2020
1 parent b88bd66 commit 9cfa4a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agent/local/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9cfa4a3

Please sign in to comment.