shard: Fix data race in metrics tests #637

Merged
fyrchik merged 1 commit from fyrchik/frostfs-node:fix-test into master 2023-08-23 10:26:13 +00:00

1 commit

Author SHA1 Message Date
53340435b1 [#xx] shard: Fix data race in metrics tests
All checks were successful
DCO action / DCO (pull_request) Successful in 1m44s
Vulncheck / Vulncheck (pull_request) Successful in 2m54s
Build / Build Components (1.20) (pull_request) Successful in 3m35s
Tests and linters / Staticcheck (pull_request) Successful in 3m45s
Tests and linters / Tests (1.20) (pull_request) Successful in 5m18s
Tests and linters / Tests (1.21) (pull_request) Successful in 5m34s
Tests and linters / Tests with -race (pull_request) Successful in 6m0s
Build / Build Components (1.21) (pull_request) Successful in 12m50s
Tests and linters / Lint (pull_request) Successful in 14m13s
Protect test metric store fields with a mutex. Probably, not every field
should be protected, but better safe than sorry.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-08-23 10:44:10 +03:00