diff --git a/integrations/access/pagerduty/testlib/suite.go b/integrations/access/pagerduty/testlib/suite.go index 5d6bb3aadb2ea..991aeef9307ca 100644 --- a/integrations/access/pagerduty/testlib/suite.go +++ b/integrations/access/pagerduty/testlib/suite.go @@ -434,8 +434,8 @@ func (s *PagerdutySuiteOSS) TestRecipientsFromAccessMonitoringRule() { var collectedNames []string var mu sync.Mutex s.appConfig.OnAccessMonitoringRuleCacheUpdateCallback = func(_ types.OpType, name string, _ *accessmonitoringrulesv1.AccessMonitoringRule) error { - mu.Lock() - collectedNames=append(collectedNames, name) + mu.Lock() + collectedNames = append(collectedNames, name) mu.Unlock() return nil }