Skip to content

Commit e283217

Browse files
authored
fix: flaky-test TestExceedingBackgroundTaskBuffer (#3894)
fix: flaky-test TestExceedingBackgroundTaskBuffer ref #3837 Signed-off-by: Sandor Szücs <[email protected]>
1 parent 0bdd426 commit e283217

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

filters/openpolicyagent/openpolicyagent.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,10 +839,16 @@ func (opa *OpenPolicyAgentInstance) Healthy() bool {
839839
}
840840

841841
func (opa *OpenPolicyAgentInstance) Started() bool {
842+
if opa == nil {
843+
return false
844+
}
842845
return opa.started.Load()
843846
}
844847

845848
func (opa *OpenPolicyAgentInstance) StartScheduled() bool {
849+
if opa == nil {
850+
return false
851+
}
846852
return opa.startScheduled.Load()
847853
}
848854

0 commit comments

Comments
 (0)