haskell / haskell/haskell-language-server

`ghcide` tests shouldn't use `expectNoMoreDiagnostics`

Open
#4,924 4 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
4d 3h
Merged PRs (30d)
12

Description

Example:

https://github.com/haskell/haskell-language-server/blob/b035c21c2b4f31bbc0836648e65e675dc14b1e19/ghcide-test/exe/BootTests.hs#L58

This waits for 5 seconds and then just quits. We don't know whether this actually finished loading, or whether it finished 4.5 seconds ago (realistically, after 2 s).

Rather, we should insert a warning that we can wait for to make sure we know loading has finished. This will make the test more correct and perhaps even faster.

This is related to #4193

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.