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

test: improve pytest fixtures #368

Merged
merged 1 commit into from
Jan 23, 2023
Merged

Conversation

AntoineRR
Copy link
Collaborator

Description

Found a way to actually wait for the server to start instead of calling time.sleep in the pytest fixtures. This improves the test speed again, from 5s currently to 0.5s on my machine. This PR with the previous one make the tests around 80x faster than previously! 🥳
It should also be safer because we wait for the server to be reachable, if it is not reachable in 5s then the test will fail.

@netlify
Copy link

netlify bot commented Jan 21, 2023

Deploy Preview for robyn canceled.

Name Link
🔨 Latest commit 9bc740a
🔍 Latest deploy log https://app.netlify.com/sites/robyn/deploys/63cc54f1c85cd700092579cc

@sansyrox
Copy link
Member

Thanks for the PR @AntoineRR 😄

The PR looks good from the first glance but I will give it a thorough review in a few hours 😄

Copy link
Member

@sansyrox sansyrox left a comment

Choose a reason for hiding this comment

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

The speed upgrade is just massive! Wow! 🔥

@sansyrox sansyrox merged commit bd01dc5 into sparckles:main Jan 23, 2023
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