Skip to content

Agent Mesh

assert kind mesh e2e test

Antonio Ojeaf09cc87db467
diff --git a/development/kind/test-mesh-e2e.sh b/development/kind/test-mesh-e2e.sh
index 20c69ab8..fefeedf9 100755
--- a/development/kind/test-mesh-e2e.sh
+++ b/development/kind/test-mesh-e2e.sh
@@ -79,5 +79,8 @@ echo "== call calculator.add(2,3) =="
result=$(mcp -tool call_remote_tool \
-args "{\"peer_id\":\"$peer\",\"tool_name\":\"calculator.add\",\"arguments\":{\"a\":2,\"b\":3}}")
echo "result: $result"
-[ "$result" = "5" ] || { echo "calculator.add did not return 5"; exit 1; }
+if [[ "$result" != *"5"* ]]; then
+ echo "calculator.add did not return 5"
+ exit 1
+fi
echo "OK: calculator.add(2,3) == 5"