[tools] gopls/internal/cmd: fix flaky mcp http test

2 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Jul 8, 2025, 5:22:12 PMJul 8
to Madeline Kalil, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Alan Donovan, Robert Findley, Go LUCI, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
gopls/internal/cmd: fix flaky mcp http test

In the most recent flake of the TestMCPCommandHTTP, the call
to client.Connect failed even though the preceding call to net.Dial
was successful. This could happen if the port is open,
but client.Connect is called before the MCP HTTP server is
finished setting up the request handlers.
Change-Id: I044e98c69171e897278c337cce1e384840393f71
Reviewed-by: Robert Findley <rfin...@google.com>
Commit-Queue: Alan Donovan <adon...@google.com>
Auto-Submit: Alan Donovan <adon...@google.com>
Reviewed-by: Alan Donovan <adon...@google.com>
Files:
  • M gopls/internal/cmd/mcp_test.go
Change size: S
Delta: 1 file changed, 7 insertions(+), 6 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Alan Donovan, +2 by Robert Findley
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: I044e98c69171e897278c337cce1e384840393f71
Gerrit-Change-Number: 686675
Gerrit-PatchSet: 3
Gerrit-Owner: Madeline Kalil <mka...@google.com>
Gerrit-Reviewer: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Madeline Kalil <mka...@google.com>
Gerrit-Reviewer: Robert Findley <rfin...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages