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

Replace task delays with event listening on tests #1756

Draft
wants to merge 33 commits into
base: master
Choose a base branch
from

Conversation

savpek
Copy link
Contributor

@savpek savpek commented Apr 3, 2020

Refactoring for tests, there were multiple ways to wait for events on tests and task delay on some locations that can be handled by waiting certain event from omnisharp.

Refactored different event solutions as one which is injected as default to test host and can be used everywhere to wait and assert events.

@SirIntruder
Copy link
Contributor

Sounds rad! Could this maybe fix UpdateBuffer_TransientDocumentsDisappearWhenProjectAddsThem - it has a smelly time delay because test needed to wait for OmniSharpWorkspace.WorkspaceChanged event to apply. Is there something in the system that could be used instead?

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