Skip to content

Commit d195026

Browse files
committed
fix extractToolNames
1 parent 58ed90a commit d195026

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/http/handler_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func testTools() []inventory.ServerTool {
129129
}
130130

131131
// extractToolNames extracts tool names from an inventory
132-
func extractToolNames(inv *inventory.Inventory, ctx context.Context) []string {
132+
func extractToolNames(ctx context.Context, inv *inventory.Inventory) []string {
133133
available := inv.AvailableTools(ctx)
134134
names := make([]string, len(available))
135135
for i, tool := range available {
@@ -309,7 +309,7 @@ func TestHTTPHandlerRoutes(t *testing.T) {
309309
// Verify the inventory was captured and has the expected tools
310310
require.NotNil(t, capturedInventory, "inventory should have been created")
311311

312-
toolNames := extractToolNames(capturedInventory, capturedCtx)
312+
toolNames := extractToolNames(capturedCtx, capturedInventory)
313313
expectedSorted := make([]string, len(tt.expectedTools))
314314
copy(expectedSorted, tt.expectedTools)
315315
sort.Strings(expectedSorted)

0 commit comments

Comments
 (0)