internal/jsonrpc2_v2,mcp: remove unneeded dependencies
Remove dependencies on the eventtest and testenv packages from jsonrpc2_v2 and mcp packages, in preparation for forking. Change-Id: Id0efb0c3187629f6fb1822cc853ec52acea41b0d Reviewed-on: https://go-review.googlesource.com/c/tools/+/682696 Reviewed-by: Jonathan Amsterdam <jba@google.com> Auto-Submit: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
0160cdefa0
commit
8bc9a9a9f5
1 changed files with 22 additions and 13 deletions
|
|
@ -9,11 +9,11 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/modelcontextprotocol/go-sdk/mcp"
|
||||
"golang.org/x/tools/internal/testenv"
|
||||
)
|
||||
|
||||
const runAsServer = "_MCP_RUN_AS_SERVER"
|
||||
|
|
@ -39,7 +39,13 @@ func runServer() {
|
|||
}
|
||||
|
||||
func TestCmdTransport(t *testing.T) {
|
||||
testenv.NeedsExec(t)
|
||||
// Conservatively, limit to major OS where we know that os.Exec is
|
||||
// supported.
|
||||
switch runtime.GOOS {
|
||||
case "darwin", "linux", "windows":
|
||||
default:
|
||||
t.Skip("unsupported OS")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
|
|
|
|||
Loading…
Reference in a new issue