Skip to content

Commit

Permalink
operator: fix race condition in test
Browse files Browse the repository at this point in the history
(cherry picked from commit f1777bd)
  • Loading branch information
joejulian authored and vbotbuildovich committed Oct 13, 2023
1 parent 6224212 commit 86960dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/go/k8s/pkg/admin/mock_admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ func (s *ScopedMockAdminAPI) GetNodeConfig(
if err != nil {
return admin.NodeConfig{}, err
}
s.monitor.Lock()
defer s.monitor.Unlock()
for _, b := range s.ghostBrokers {
if b.NodeID == int(s.Ordinal) {
return admin.NodeConfig{
Expand Down

0 comments on commit 86960dd

Please sign in to comment.