Skip to content

Commit 283b9ba

Browse files
committed
fix broken TestInventoryFiltersForRequest
1 parent 622599b commit 283b9ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/http/handler_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"github.com/github/github-mcp-server/pkg/inventory"
1212
"github.com/modelcontextprotocol/go-sdk/mcp"
1313
"github.com/stretchr/testify/assert"
14+
"github.com/stretchr/testify/require"
1415
)
1516

1617
func mockTool(name, toolsetID string, readOnly bool) inventory.ServerTool {
@@ -94,7 +95,8 @@ func TestInventoryFiltersForRequest(t *testing.T) {
9495
WithToolsets([]string{"all"})
9596

9697
builder = InventoryFiltersForRequest(req, builder)
97-
inv := builder.Build()
98+
inv, err := builder.Build()
99+
require.NoError(t, err)
98100

99101
available := inv.AvailableTools(context.Background())
100102
toolNames := make([]string, len(available))

0 commit comments

Comments
 (0)