From e1d674f62d291fae6e8d210fbf9ad03daae7e9d6 Mon Sep 17 00:00:00 2001 From: Sudhish <108091997+skrdgraph@users.noreply.github.com> Date: Thu, 13 Oct 2022 16:34:36 -0700 Subject: [PATCH] fix(test): adding logging to EnterpriseEnabled function (#8362) ## 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> --- worker/groups.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/worker/groups.go b/worker/groups.go index f76e4621eb3..4aa26fd56cc 100644 --- a/worker/groups.go +++ b/worker/groups.go @@ -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() }