Skip to content

Commit 6ee5d6c

Browse files
committed
Fix linting issue
1 parent edba7f3 commit 6ee5d6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mcp/typed_tools_additional_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,10 @@ func TestTypedToolHandler_ContextPropagation(t *testing.T) {
273273
Value string `json:"value"`
274274
}
275275

276+
type contextKey string
277+
276278
t.Run("context is passed to handler", func(t *testing.T) {
277-
ctxKey := "test-key"
279+
ctxKey := contextKey("test-key")
278280
ctxValue := "test-value"
279281

280282
handler := func(ctx context.Context, request CallToolRequest, args Args) (*CallToolResult, error) {

0 commit comments

Comments
 (0)