Skip to content

Conversation

hiranya911
Copy link
Contributor

@hiranya911 hiranya911 commented Jan 15, 2020

Repeatedly starting pytest_localserver is an expensive operation. This fix uses the same instance for multiple test cases in the same class.

Before fix:

2370 passed in 18.37s

After fix:

2370 passed in 10.60s

Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

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

Thank you for making this optimization!

@hiranya911 hiranya911 merged commit 0e4f3bf into master Jan 15, 2020
@hiranya911 hiranya911 deleted the hkj-fast-http branch January 15, 2020 18:21
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