Agent Mesh
Go a2aa2a-protocolagent-meshagentic-aiinferencemcpmeshmesh-networknetwork-securitynetworking-aip2p-network
fix linter
Antonio Ojea823210a356ea
diff --git a/tests/e2e/publish_ban/publish_ban.go b/tests/e2e/publish_ban/publish_ban.goindex 46b1afaa..593cdacb 100644--- a/tests/e2e/publish_ban/publish_ban.go+++ b/tests/e2e/publish_ban/publish_ban.go@@ -39,7 +39,7 @@ func main() {if err != nil {log.Fatal(err)}- defer h.Close()+ defer func() { _ = h.Close() }()ps, err := pubsub.NewGossipSub(ctx, h)if err != nil {diff --git a/tests/integration/fallback_test.go b/tests/integration/fallback_test.goindex 4b8805f6..c5ceaadc 100644--- a/tests/integration/fallback_test.go+++ b/tests/integration/fallback_test.go@@ -61,7 +61,7 @@ func TestFallbackReEnrollment(t *testing.T) {if err != nil {t.Fatal(err)}- defer clientHost.Close()+ defer func() { _ = clientHost.Close() }()// Create a dummy JWT file for fallbackjwtPath := filepath.Join(tmpHome, "jwt.txt")@@ -74,15 +74,21 @@ func TestFallbackReEnrollment(t *testing.T) {// Bind to client peer IDnodeFact, _ := parser.FromStringFact(fmt.Sprintf(`node("%s")`, clientHost.ID()))- builder.AddAuthorityFact(nodeFact)+ if err := builder.AddAuthorityFact(nodeFact); err != nil {+ t.Fatal(err)+ }// Add client_peer_id fact for replay checkclientPeerFact, _ := parser.FromStringFact(fmt.Sprintf(`client_peer_id("%s")`, clientHost.ID()))- builder.AddAuthorityFact(clientPeerFact)+ if err := builder.AddAuthorityFact(clientPeerFact); err != nil {+ t.Fatal(err)+ }// Add wildcard tool accesstoolFact, _ := parser.FromStringFact(`allow_mcp_tool("*")`)- builder.AddAuthorityFact(toolFact)+ if err := builder.AddAuthorityFact(toolFact); err != nil {+ t.Fatal(err)+ }b, _ := builder.Build()@@ -191,7 +197,7 @@ func TestFallbackReEnrollment(t *testing.T) {if err != nil {t.Fatal(err)}- defer s.Close()+ defer func() { _ = s.Close() }()// 10. Send AuthFrame with token Bwriter := msgio.NewVarintWriter(s)