diff options
| author | mo khan <mo@mokhan.ca> | 2025-08-18 14:43:12 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-08-18 14:43:12 -0600 |
| commit | df7422e080e4fe23a048fe40a331719969bc138c (patch) | |
| tree | a6dfbeaf734f2f6d71370841335cc760b821eddb | |
| parent | ce09b1448cc9f4a9fcf45b6e1d2430c1a3c51d27 (diff) | |
chore: fix broken tests
| -rw-r--r-- | test/integration/main_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/integration/main_test.go b/test/integration/main_test.go index 9dfafd1..52c2f05 100644 --- a/test/integration/main_test.go +++ b/test/integration/main_test.go @@ -221,14 +221,14 @@ func TestAllServers(t *testing.T) { servers := []ServerTestConfig{ { BinaryName: "mcp-filesystem", - Args: []string{"--allowed-directory", tempDir}, + Args: []string{tempDir}, ExpectedTools: []string{"read_file", "write_file"}, ExpectedServers: "filesystem", MinResources: 1, // Should have at least the temp directory }, { BinaryName: "mcp-git", - Args: []string{"--repository", getProjectRoot()}, + Args: []string{getProjectRoot()}, ExpectedTools: []string{"git_status", "git_diff", "git_commit"}, ExpectedServers: "mcp-git", MinResources: 1, // Should have git repository resources @@ -263,7 +263,7 @@ func TestAllServers(t *testing.T) { }, { BinaryName: "mcp-maildir", - Args: []string{"--maildir-path", tempDir}, + Args: []string{tempDir}, ExpectedTools: []string{"maildir_scan_folders", "maildir_list_messages"}, ExpectedServers: "maildir-server", MinResources: 1, // Should have maildir resources @@ -278,9 +278,9 @@ func TestAllServers(t *testing.T) { { BinaryName: "mcp-bash", Args: []string{}, - ExpectedTools: []string{"bash_exec", "system_info", "get_env"}, + ExpectedTools: []string{"exec"}, ExpectedServers: "bash", - MinResources: 0, // Bash server has resources but they're dynamically registered + MinResources: 90, // Bash server has bash builtins and coreutils resources }, { BinaryName: "mcp-semantic", @@ -455,11 +455,11 @@ func TestServerStartupPerformance(t *testing.T) { var args []string switch serverName { case "mcp-filesystem": - args = []string{"--allowed-directory", tempDir} + args = []string{tempDir} case "mcp-git": - args = []string{"--repository", getProjectRoot()} + args = []string{getProjectRoot()} case "mcp-maildir": - args = []string{"--maildir-path", tempDir} + args = []string{tempDir} case "mcp-imap": args = []string{"--server", "example.com", "--username", "test", "--password", "test"} case "mcp-semantic": |
