Skip to content

Commit b77cad2

Browse files
authored
fix: The default gRPC port for the TCK agent should default to 9999 (#259)
# Description Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Follow the [`CONTRIBUTING` Guide](../CONTRIBUTING.md). - [x] Make your Pull Request title in the <https://www.conventionalcommits.org/> specification. - Important Prefixes for [release-please](https://github.com/googleapis/release-please): - `fix:` which represents bug fixes, and correlates to a [SemVer](https://semver.org/) patch. - `feat:` represents a new feature, and correlates to a SemVer minor. - `feat!:`, or `fix!:`, `refactor!:`, etc., which represent a breaking change (indicated by the `!`) and will result in a SemVer major. - [x] Ensure the tests pass - [x] Appropriate READMEs were updated (if necessary) Fixes #<issue_number_goes_here> 🦕
1 parent 2bb1fa1 commit b77cad2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tck/src/main/java/io/a2a/tck/server/AgentCardProducer.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@
1717
@ApplicationScoped
1818
public class AgentCardProducer {
1919

20+
private static final String DEFAULT_SUT_URL = "http://localhost:9999";
21+
2022
@Produces
2123
@PublicAgentCard
2224
public AgentCard agentCard() {
23-
String sutJsonRpcUrl = getEnvOrDefault("SUT_JSONRPC_URL", "http://localhost:9999");
24-
String sutGrpcUrl = getEnvOrDefault("SUT_GRPC_URL", "http://localhost:9000");
25+
String sutJsonRpcUrl = getEnvOrDefault("SUT_JSONRPC_URL", DEFAULT_SUT_URL);
26+
String sutGrpcUrl = getEnvOrDefault("SUT_GRPC_URL", DEFAULT_SUT_URL);
2527
return new AgentCard.Builder()
2628
.name("Hello World Agent")
2729
.description("Just a hello world agent")

0 commit comments

Comments
 (0)