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

Change mock type for encode_message #6540

Merged
merged 1 commit into from
Nov 12, 2021
Merged

Change mock type for encode_message #6540

merged 1 commit into from
Nov 12, 2021

Conversation

drew2a
Copy link
Contributor

@drew2a drew2a commented Nov 10, 2021

This PR fixes #6539 by removing AsyncMock from encode_message patch because encode_message uses only in synchronized calls.

As a consequence of doing this: removed warning and fixed test_set_rate_settings test.

sys:1: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

See full explanations here: #6539

qstokkink
qstokkink previously approved these changes Nov 10, 2021
Copy link
Contributor

@qstokkink qstokkink left a comment

Choose a reason for hiding this comment

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

Confirmed fix. My setup of #6539 (comment) no longer leads to an unawaited coroutine.

@drew2a drew2a marked this pull request as ready for review November 10, 2021 13:39
@drew2a drew2a requested review from a team and kozlovsky and removed request for a team November 10, 2021 13:39
@drew2a drew2a marked this pull request as draft November 10, 2021 13:56
kozlovsky
kozlovsky previously approved these changes Nov 12, 2021
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@drew2a drew2a marked this pull request as ready for review November 12, 2021 11:03
@drew2a drew2a merged commit c5757b8 into Tribler:main Nov 12, 2021
@drew2a drew2a deleted the fix/6539 branch November 12, 2021 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[Main]: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
3 participants