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

Fix base provider's unit tests (BugFix) #1216

Merged
merged 6 commits into from
Apr 30, 2024
Merged

Conversation

kissiel
Copy link
Contributor

@kissiel kissiel commented Apr 29, 2024

Description

Over the course of last 2 months, yet again, tests that calling sleep or other unmocked time-related functions had been committed to the repository making the iteration time unnecessary long.
One of the test also made the whole thing unable to be run from within editors or IDEs that are running from a snap, because it actually asserted we're not running from snap (and of course the CI let it through, as it runs the tests not within a snap.

Overall this PR makes the tests run 20x faster.

See individual commits for details.

Copy link

codecov bot commented Apr 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.36%. Comparing base (9318a5c) to head (74d05f6).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1216      +/-   ##
==========================================
+ Coverage   43.32%   43.36%   +0.03%     
==========================================
  Files         356      357       +1     
  Lines       38658    38684      +26     
  Branches     6559     6560       +1     
==========================================
+ Hits        16750    16775      +25     
  Misses      21245    21245              
- Partials      663      664       +1     
Flag Coverage Δ
provider-base 16.71% <ø> (+0.13%) ⬆️

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.

Copy link
Collaborator

@pieqq pieqq left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks :)

@kissiel kissiel force-pushed the fix-base-provider-tests branch from 6af64a5 to 74d05f6 Compare April 30, 2024 09:03
@Hook25 Hook25 merged commit 646fe88 into main Apr 30, 2024
11 checks passed
@Hook25 Hook25 deleted the fix-base-provider-tests branch April 30, 2024 09:07
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.

3 participants