gnodet-bot commented on code in PR #30723:
URL: https://github.com/apache/camel/pull/30723#discussion_r4737146016
##########
tooling/camel-tooling-maven/src/test/java/org/apache/camel/tooling/maven/MavenDownloaderImplTest.java:
##########
@@ -1260,13 +1260,16 @@ void testCamelDefaults() throws Exception {
downloader.build();
Map<String, Object> config =
downloader.getRepositorySystemSession().getConfigProperties();
- assertCamelDefault("60000", config,
"aether.connector.requestTimeout");
+ assertCamelDefault("60000", config,
"aether.transport.http.requestTimeout");
assertCamelDefault("bf", config,
"aether.dependencyCollector.impl");
assertCamelDefault("10", config,
"aether.dependencyCollector.bf.threads");
}
}
- // a system property wins over the default of Camel (the CI build sets
aether.connector.requestTimeout=300000)
+ // a system property wins over the default of Camel; the
assertCamelDefault helper checks
+ // System.getProperty(key, expected) against the actual config value, so
if the CI build sets
+ // -Daether.transport.http.requestTimeout=300000 the assertion validates
that value (300000) rather
+ // than the Camel default (60000) — the helper documents the "system
property wins" contract.
Review Comment:
💡 **Nit:** Unicode em dash (`—`) in a Java source comment. The rest of the
codebase uses ASCII. Replace with `;` to keep the comment ASCII-clean.
```suggestion
// than the Camel default (60000); the helper documents the "system
property wins" contract.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]