Skip to content

fix(test): resolve data races in redis mock and nexmark#3995

Closed
ngjaying wants to merge 3 commits intolf-edge:masterfrom
ngjaying:fix/misc-races
Closed

fix(test): resolve data races in redis mock and nexmark#3995
ngjaying wants to merge 3 commits intolf-edge:masterfrom
ngjaying:fix/misc-races

Conversation

@ngjaying
Copy link
Collaborator

Fixes data race in pkg/mock/test_source.go (used by Redis tests) and global variable race in internal/io/nexmark/event.go.

Signed-off-by: Jiyong Huang <huangjy@emqx.io>
1. Fix data race in pkg/mock/test_source.go used by Redis tests.

2. Fix data race in global slice access in internal/io/nexmark/event.go.

Signed-off-by: Jiyong Huang <huangjy@emqx.io>
Signed-off-by: Jiyong Huang <huangjy@emqx.io>
@ngjaying ngjaying closed this Jan 30, 2026
@codecov
Copy link

codecov bot commented Jan 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.97%. Comparing base (bdbe56a) to head (e60f492).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3995      +/-   ##
==========================================
+ Coverage   71.92%   71.97%   +0.05%     
==========================================
  Files         457      457              
  Lines       52717    52727      +10     
==========================================
+ Hits        37913    37947      +34     
+ Misses      11877    11861      -16     
+ Partials     2927     2919       -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant