Skip to content

Commit

Permalink
fix(test): adding logging to EnterpriseEnabled function (#8362)
Browse files Browse the repository at this point in the history
## Problem

need logging for identifying flaky test issue for ee license

## Solution

super verbose logging

Co-authored-by: dshekhar95 <111321288+dshekhar95@users.noreply.github.com>
  • Loading branch information
skrdgraph and dshekhar95 authored Oct 13, 2022
1 parent e781d1f commit e1d674f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions worker/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -1135,12 +1135,16 @@ func GetEEFeaturesList() []string {
// EnterpriseEnabled returns whether enterprise features can be used or not.
func EnterpriseEnabled() bool {
if !enc.EeBuild {
fmt.Println("EnterpriseEnabled: enc.EeBuild ", enc.EeBuild)
return false
}
state := GetMembershipState()
fmt.Println("EnterpriseEnabled: GetMembershipState ", state)
if state == nil {
fmt.Println("EnterpriseEnabled: groups.askZeroForEE ", groups().askZeroForEE())
return groups().askZeroForEE()
}
fmt.Println("EnterpriseEnabled: state.GetLicense.GetEnabled ", state.GetLicense().GetEnabled())
return state.GetLicense().GetEnabled()
}

Expand Down

0 comments on commit e1d674f

Please sign in to comment.