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: speed up tests #362

Merged
merged 1 commit into from
Jan 19, 2023
Merged

test: speed up tests #362

merged 1 commit into from
Jan 19, 2023

Conversation

AntoineRR
Copy link
Collaborator

Description

This PR speeds up tests by a lot. On my computer, running the tests took around 40s and it now runs in around 5s.
To achieve this, I decreased the sleep time when waiting for a server, and changed the librairy used for the websocket client.
Ideally, we should wait for a signal that let us know the server has started but I could not figure out how to do that for now.
Also, I removed the Arc around task_locals in the Rust code as it seems it wasn't needed.

@netlify
Copy link

netlify bot commented Jan 16, 2023

Deploy Preview for robyn canceled.

Name Link
🔨 Latest commit 74fcdd0
🔍 Latest deploy log https://app.netlify.com/sites/robyn/deploys/63c5db3671ca650008eb9d53

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 speedup is crazy! Wow 🔥

@sansyrox
Copy link
Member

Great work Antoinne! ❇️

@sansyrox sansyrox merged commit 6cf1719 into sparckles:main Jan 19, 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.

None yet

2 participants