Skip to content

Fix data race in commands package unit tests

What does this MR do?

This data race is only in test functions, but it still prevents us to enable go test -race.

We are touching lock protected variables from test function.

Why was this MR needed?

Are there points in the code the reviewer needs to double check?

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Tests
    • Added for this feature/bug
    • All builds are passing
  • Branch has no merge conflicts with master (if you do - rebase it please)

What are the relevant issue numbers?

Edited by Alessio Caiazza

Merge request reports