Skip to content

Commit 2ec96c6

Browse files
author
rainu
committed
fix test
1 parent e083d9d commit 2ec96c6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

internal/mcp/server/builtin/tools/file/stats_test.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ package file
33
import (
44
"encoding/json"
55
"fmt"
6-
"github.com/mark3labs/mcp-go/mcp"
7-
"github.com/mark3labs/mcp-go/server"
8-
"github.com/stretchr/testify/assert"
9-
"github.com/stretchr/testify/require"
106
"os"
117
"path"
128
"testing"
139
"time"
10+
11+
"github.com/mark3labs/mcp-go/mcp"
12+
"github.com/mark3labs/mcp-go/server"
13+
"github.com/stretchr/testify/assert"
14+
"github.com/stretchr/testify/require"
1415
)
1516

1617
func TestTool_Stats(t *testing.T) {
@@ -152,7 +153,7 @@ func TestTool_Stats_Requirements_PathIsDirectory(t *testing.T) {
152153
parsedResult.Size = 0
153154

154155
assert.Equal(t, StatsResult{
155-
Path: req.Params.Arguments["path"].(string),
156+
Path: req.Params.Arguments.(map[string]any)["path"].(string),
156157
IsDirectory: true,
157158
IsRegular: false,
158159
Permissions: "-rwxr-xr-x",

0 commit comments

Comments
 (0)