Skip to content

Replace task delays with event listening on tests - #1756

Draft
savpek wants to merge 33 commits into
OmniSharp:masterfrom
savpek:feature/replace-task-delays-with-event-listening
Draft

Replace task delays with event listening on tests#1756
savpek wants to merge 33 commits into
OmniSharp:masterfrom
savpek:feature/replace-task-delays-with-event-listening

Conversation

@savpek

@savpek savpek commented Apr 3, 2020

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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