Skip to content

Fix tests#798

Merged
davidanthoff merged 1 commit intomasterfrom
fix-tests
Jul 14, 2020
Merged

Fix tests#798
davidanthoff merged 1 commit intomasterfrom
fix-tests

Conversation

@davidanthoff
Copy link
Copy Markdown
Member

Fixes #797.

This is the minimal fix I came up with for the CI testing. Unfortunately it does require one change to the package code just to fix the tests, but I couldn't come up with a better idea.

The problem here is that for the LS tests we don't set up a full communication channel, and so we need a way to make sure things like sending diagnostics don't error. My plan had be to enable a full mocking story, but I never finished this, so this is a somewhat lame emulation of that: if the endpoint is nothing, in the test case we make sending a notification to such a nothing endpoint a no op. I know how to improve this generally, but that would require more refactoring of the code that ships to users, so I think that should probably wait until after Juliacon, and for now we go with this minimal fix to get back our CI testing.

The reason this slipped into master in the first place was that a JSONRPC.jl update exposed a bug in the LS tests.

Copy link
Copy Markdown
Member

@pfitzseb pfitzseb left a comment

Choose a reason for hiding this comment

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

Seems like a good-enough short term solution.

@davidanthoff davidanthoff merged commit e56ba20 into master Jul 14, 2020
@davidanthoff davidanthoff deleted the fix-tests branch July 14, 2020 16:14
@oppo-source oppo-source removed the request for review from a team April 16, 2021 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix CI

2 participants