Skip to content

Commit 5dfeaca

Browse files
committed
remove duplicated test
1 parent 0c8980d commit 5dfeaca

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

internal/ghmcp/server_test.go

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ package ghmcp
33
import (
44
"testing"
55

6-
"github.com/github/github-mcp-server/pkg/github"
76
"github.com/stretchr/testify/assert"
87
"github.com/stretchr/testify/require"
98
)
109

11-
func TestTransformSpecialToolsets(t *testing.T) {
10+
func TestCleanToolsets(t *testing.T) {
1211
tests := []struct {
1312
name string
1413
input []string
@@ -243,26 +242,3 @@ func TestTransformSpecialToolsets(t *testing.T) {
243242
})
244243
}
245244
}
246-
247-
func TestTransformSpecialToolsetsWithActualDefaults(t *testing.T) {
248-
// This test verifies that the function uses the actual default toolsets from GetDefaultToolsetIDs()
249-
input := []string{"default"}
250-
result := cleanToolsets(input, false)
251-
252-
defaultToolsets := github.GetDefaultToolsetIDs()
253-
254-
// Check that result contains all default toolsets
255-
require.Len(t, result, len(defaultToolsets), "result should contain all default toolsets")
256-
257-
resultMap := make(map[string]bool)
258-
for _, toolset := range result {
259-
resultMap[toolset] = true
260-
}
261-
262-
for _, defaultToolset := range defaultToolsets {
263-
assert.True(t, resultMap[defaultToolset], "result should contain default toolset: %s", defaultToolset)
264-
}
265-
266-
// Verify "default" is not in the result
267-
assert.False(t, resultMap["default"], "result should not contain 'default'")
268-
}

0 commit comments

Comments
 (0)