Skip to content

Agent Mesh

tests: connect peers via the debug endpoint helper in the a2a CUJ

Tomas Tormo9bebe5975a24
diff --git a/tests/integration/a2a_test.go b/tests/integration/a2a_test.go
index 5779b0fb..1d317223 100644
--- a/tests/integration/a2a_test.go
+++ b/tests/integration/a2a_test.go
@@ -63,7 +63,7 @@ func TestA2ACUJ(t *testing.T) {
waitForAPI(t, apiAddrB)
addrA := waitForPeerInfoInLog(t, filepath.Join(homeA, "node.log"))
- callMCP(t, apiAddrB, "connect_peer", map[string]any{"peer_addr": addrA})
+ connectPeer(t, apiAddrB, addrA)
waitForDHTPeers(t, apiAddrA)
idx := strings.LastIndex(addrA, "/p2p/")