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

x/tools/gopls/test, x/tools/internal/lsp: inscrutable test output on failure #41717

bcmills opened this issue Sep 30, 2020 · 1 comment


Copy link

@bcmills bcmills commented Sep 30, 2020

What version of Go are you using (go version)?

What did you do?

Run TryBots for x/tools.

What did you expect to see?

All tests passing, or a test log with a clear indication of what actually went wrong (per

What did you see instead?

which contains what appears to me as a wall of text followed by an otherwise-disconnected diff in an expected output count:

--- FAIL: TestCommandLine (31.97s)
    --- FAIL: TestCommandLine/Modules (16.61s)
        tests.go:884: test summary does not match:
            --- want
            +++ got
            @@ -7,7 +7,7 @@
             FuzzyCompletionsCount = 8
             RankedCompletionsCount = 157
             CaseSensitiveCompletionsCount = 4
            -DiagnosticsCount = 44
            +DiagnosticsCount = 43
             FoldingRangesCount = 2
             FormatCount = 6
             ImportCount = 8
FAIL	32.066s

From that output, I have no idea which of the 44(!) expected diagnostics from the test was missing, or which line or source file was intended to produce that missing diagnostic.

Copy link
Member Author

@bcmills bcmills commented Sep 30, 2020

CC @stamblerre @heschik @ianthehat


@stamblerre stamblerre removed this from the Unreleased milestone Oct 1, 2020
@stamblerre stamblerre added this to the gopls/unplanned milestone Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants