We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentccfe11c commite61753dCopy full SHA for e61753d
mcp/tools/tools_coder_test.go
@@ -4,6 +4,7 @@ import (
4
"context"
5
"encoding/json"
6
"io"
7
+"runtime"
8
"testing"
9
10
"github.com/mark3labs/mcp-go/mcp"
@@ -25,6 +26,9 @@ import (
25
26
// Running them in parallel is prone to racy behavior.
27
// nolint:tparallel,paralleltest
28
funcTestCoderTools(t*testing.T) {
29
+ifruntime.GOOS!="linux" {
30
+t.Skip("skipping on non-linux due to pty issues")
31
+}
32
ctx:=testutil.Context(t,testutil.WaitLong)
33
// Given: a coder server, workspace, and agent.
34
client,store:=coderdtest.NewWithDatabase(t,nil)
@@ -146,6 +150,9 @@ func TestCoderTools(t *testing.T) {
146
150
})
147
151
148
152
t.Run("coder_get_workspace",func(t*testing.T) {
153
+// Given: the workspace agent is connected.
154
+// The act of starting the agent will modify the workspace state.
155
+<-agentStarted
149
156
// When: the coder_get_workspace tool is called
157
ctr:=makeJSONRPCRequest(t,"tools/call","coder_get_workspace",map[string]any{
158
"workspace":r.Workspace.ID.String(),