Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing race condition in carboncopy_SUITE #3144

Merged
merged 1 commit into from
Jun 1, 2021

Conversation

DenysGonchar
Copy link
Collaborator

fixing race condition in unavailable_resources_dont_get_carbons test case of carboncopy_SUITE

There was a problem in unavailable_resources_dont_get_carbons test case sequence.
The presence from Alice1 could be delivered to Alice2 faster than the message from Bob.
In this case Alice1 also can receive carbonecopy from Bob as a 3rd message, but it fetches and checks only 2 messages.
Copy link
Collaborator

@NelsonVides NelsonVides left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just like I thought 👌🏽

Copy link
Contributor

@gustawlippa gustawlippa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

@DenysGonchar DenysGonchar force-pushed the fixing-race-condition-in-carboncopy_SUITE branch from aa501a7 to 9f5a888 Compare June 1, 2021 10:57
@codecov
Copy link

codecov bot commented Jun 1, 2021

Codecov Report

Merging #3144 (9f5a888) into master (cdd2560) will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3144      +/-   ##
==========================================
+ Coverage   79.41%   79.44%   +0.03%     
==========================================
  Files         396      396              
  Lines       32419    32419              
==========================================
+ Hits        25745    25755      +10     
+ Misses       6674     6664      -10     
Impacted Files Coverage Δ
src/pubsub/node_hometree.erl 77.77% <0.00%> (-5.56%) ⬇️
src/ejabberd_s2s_out.erl 59.45% <0.00%> (-2.51%) ⬇️
src/cassandra/mongoose_cassandra_worker.erl 70.75% <0.00%> (-2.36%) ⬇️
src/mod_bosh.erl 92.56% <0.00%> (-1.36%) ⬇️
src/muc_light/mod_muc_light_utils.erl 89.79% <0.00%> (-1.03%) ⬇️
src/muc_light/mod_muc_light.erl 84.87% <0.00%> (-0.74%) ⬇️
src/ejabberd_c2s.erl 88.98% <0.00%> (-0.30%) ⬇️
src/pubsub/mod_pubsub.erl 71.88% <0.00%> (-0.06%) ⬇️
src/mod_roster.erl 76.85% <0.00%> (+0.23%) ⬆️
src/mam/mod_mam_utils.erl 89.89% <0.00%> (+0.33%) ⬆️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cdd2560...9f5a888. Read the comment docs.

@NelsonVides NelsonVides merged commit 94935ae into master Jun 1, 2021
@NelsonVides NelsonVides deleted the fixing-race-condition-in-carboncopy_SUITE branch June 1, 2021 12:14
@Premwoik Premwoik added this to the 5.0.0 milestone Oct 5, 2021
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.

None yet

4 participants