summaryrefslogtreecommitdiff
path: root/internal/mcp
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-09 22:42:39 +0300
committerPaul Buetow <paul@buetow.org>2026-06-09 22:42:39 +0300
commit7e436b53f289683d27617f1e2b2f2b5899ecfffb (patch)
tree9560b8f2517ae08e4daf21fa837a83d477433531 /internal/mcp
parentdc17b7469c2055961892bbb3175d4ab0fb1d1180 (diff)
v0.41.1v0.41.1
Diffstat (limited to 'internal/mcp')
-rw-r--r--internal/mcp/handlers_prompt_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/mcp/handlers_prompt_test.go b/internal/mcp/handlers_prompt_test.go
index 17b0607..f3a9d87 100644
--- a/internal/mcp/handlers_prompt_test.go
+++ b/internal/mcp/handlers_prompt_test.go
@@ -885,8 +885,12 @@ func TestServer_Run_InvalidJSON(t *testing.T) {
done <- server.Run()
}()
- // Give time for processing
- time.Sleep(50 * time.Millisecond)
+ // Wait for processing to complete
+ select {
+ case <-done:
+ case <-time.After(2 * time.Second):
+ t.Fatal("server.Run() did not return in time")
+ }
// Should have written error response
if outBuf.Len() == 0 {