Skip to content

Commit

Permalink
Merge pull request redpanda-data#14173 from vbotbuildovich/backport-p…
Browse files Browse the repository at this point in the history
…r-14167-v23.2.x-917

[v23.2.x] operator: fix race condition in test
  • Loading branch information
RafalKorepta authored Oct 13, 2023
2 parents 6224212 + 86960dd commit 1923409
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 1923409

Please sign in to comment.