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

[Testing] Reduce IO on AbstractRectorTestCase::doTestFile() #3670

Merged
merged 2 commits into from
Apr 23, 2023
Merged

Conversation

samsonasik
Copy link
Member

@samsonasik samsonasik commented Apr 23, 2023

FileSystem::read() already call early, so I added new method FixtureSplitter::splitFixtureFileContents() for direct already defined content.

@samsonasik
Copy link
Member Author

@staabm let's see if can resolve random error of tests.

@samsonasik
Copy link
Member Author

@TomasVotruba I added new method FixtureSplitter::splitFixtureFileContents() for direct already defined content instead of re-read the file path content.

@samsonasik
Copy link
Member Author

it's seems not really resolve the random error, but actually should be faster now since no need to re-read the file already read and save to previous variable.

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit c6d11cd into main Apr 23, 2023
@samsonasik samsonasik deleted the reduce-io branch April 23, 2023 15:19
samsonasik added a commit that referenced this pull request May 8, 2023
* [Testing] Reduce IO on AbstractRectorTestCase::doTestFile()

* direct call
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.

1 participant