Skip to content

cleanup: make some improvements to group moderation test#2576

Merged
iphydf merged 1 commit into
TokTok:masterfrom
JFreegman:group_mod_test_fixes
Jan 16, 2024
Merged

cleanup: make some improvements to group moderation test#2576
iphydf merged 1 commit into
TokTok:masterfrom
JFreegman:group_mod_test_fixes

Conversation

@JFreegman

@JFreegman JFreegman commented Jan 16, 2024

Copy link
Copy Markdown
Member
  • We no longer assert peer roles in the mod event callback because this causes an issue with the new events implementation, which triggers the events after all the packets from the current tox_iterate() are processed, rather than as the packets are received. These checks were superfluous and shouldn't reduce code coverage.
  • A moderator now sets the topic before the founder kicks him in order to increase internal code coverage.

This change is Reviewable

@JFreegman JFreegman added the cleanup Internal code cleanup, possibly affecting semantics, e.g. deleting a deprecated feature. label Jan 16, 2024
@JFreegman JFreegman added this to the v0.2.19 milestone Jan 16, 2024
- We no longer assert peer roles in the mod event callback
because this causes an issue with the new events implementation,
which triggers the events after all the packets from the
current tox_iterate() are processed, rather than as the
packets are received. These checks were superfluous and shouldn't
reduce code coverage.
- A moderator now sets the topic before the founder kicks him in
order to increase internal code coverage.
@JFreegman JFreegman force-pushed the group_mod_test_fixes branch from 8b7976a to 5e2c8ca Compare January 16, 2024 23:08
@codecov

codecov Bot commented Jan 16, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (259de48) 66.93% compared to head (5e2c8ca) 66.90%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2576      +/-   ##
==========================================
- Coverage   66.93%   66.90%   -0.03%     
==========================================
  Files         148      148              
  Lines       30261    30262       +1     
==========================================
- Hits        20254    20247       -7     
- Misses      10007    10015       +8     

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

@iphydf iphydf merged commit 5e2c8ca into TokTok:master Jan 16, 2024
@JFreegman JFreegman deleted the group_mod_test_fixes branch January 16, 2024 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Internal code cleanup, possibly affecting semantics, e.g. deleting a deprecated feature.

Development

Successfully merging this pull request may close these issues.

2 participants