Skip to content

Fix race in test#2067

Merged
kislaykishore merged 1 commit into
masterfrom
kislaykishore-patch-5
Jun 26, 2024
Merged

Fix race in test#2067
kislaykishore merged 1 commit into
masterfrom
kislaykishore-patch-5

Conversation

@kislaykishore

Copy link
Copy Markdown
Collaborator

Shadow the tc variable so that different subtests refer to their corresponding tc.

It's have been fine had the subtests ran sequentially but in a parallel run, different tests sharing the same tc variable can lead to race.

@kislaykishore kislaykishore requested a review from a team as a code owner June 25, 2024 11:39
@kislaykishore kislaykishore requested a review from charith87 June 25, 2024 11:39
Shadow the tc variable so that different subtests refer to their corresponding tc.

It'd have been fine had the subtests ran sequentially but in a parallel run, different tests sharing the same tc variable can lead to race.
@kislaykishore kislaykishore force-pushed the kislaykishore-patch-5 branch from b822e12 to e439958 Compare June 25, 2024 11:42
@codecov

codecov Bot commented Jun 25, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.00%. Comparing base (3f8314a) to head (e439958).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2067   +/-   ##
=======================================
  Coverage   71.99%   72.00%           
=======================================
  Files          99       99           
  Lines       10870    10870           
=======================================
+ Hits         7826     7827    +1     
+ Misses       2712     2711    -1     
  Partials      332      332           
Flag Coverage Δ
unittests 72.00% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@kislaykishore kislaykishore merged commit dd1542d into master Jun 26, 2024
@kislaykishore kislaykishore deleted the kislaykishore-patch-5 branch June 26, 2024 04:05
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.

2 participants