You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
There is a pattern in the test suite where there is a sleep call right after a synchronous reindex!. This happens four times in spec/integration_spec.rb, but they are RSpec before blocks so they run more times than that.
Removing these sleep calls does not fail any test (the reindex! operations are already synchronous) and it brings the time it takes to run all tests from ~32s to ~12s (on my machine).
The text was updated successfully, but these errors were encountered:
ellnix
changed the title
Improve Test Suite Performance
Redundant Calls to sleep in the Test Suite
Sep 27, 2023
292: Remove redundant calls to sleep in tests r=brunoocasali a=ellnix
# Pull Request
## Related issue
Fixes#291
## What does this PR do?
## PR checklist
Please check if your PR fulfills the following requirements:
- [X] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [X] Have you read the contributing guidelines?
- [X] Have you made sure that the title is accurate and descriptive of the changes?
Co-authored-by: ellnix <103502144+ellnix@users.noreply.github.com>
Description
There is a pattern in the test suite where there is a
sleep
call right after a synchronousreindex!
. This happens four times inspec/integration_spec.rb
, but they are RSpecbefore
blocks so they run more times than that.Removing these
sleep
calls does not fail any test (thereindex!
operations are already synchronous) and it brings the time it takes to run all tests from ~32s to ~12s (on my machine).The text was updated successfully, but these errors were encountered: