This is an automated email from the ASF dual-hosted git repository. heneveld pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git
commit 09f01bc83947db32a39febbf28d964ea9eb9b22c Author: Alex Heneveld <[email protected]> AuthorDate: Wed Jan 22 21:12:49 2025 +0000 Adjust timing with comment in indeterminately failing test --- .../test/java/org/apache/brooklyn/camp/brooklyn/ConfigYamlTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/ConfigYamlTest.java b/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/ConfigYamlTest.java index 777310d6d1..99ac2228fd 100644 --- a/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/ConfigYamlTest.java +++ b/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/ConfigYamlTest.java @@ -571,7 +571,8 @@ public class ConfigYamlTest extends AbstractYamlTest { @Test public void testAttributeWhenReadyOptionsTimeoutIfDownResetsAndAbortsIfOnFire() throws Exception { - String v0 = "{ $brooklyn:chain: [ $brooklyn:entity(\"entity2\"), { attributeWhenReady: [ \"test.name\", { timeout: forever, timeout_if_down: 10ms } ] } ] }"; + // was 10ms, but that is too short as there are 10ms sleeps while stopping; 50ms is better + String v0 = "{ $brooklyn:chain: [ $brooklyn:entity(\"entity2\"), { attributeWhenReady: [ \"test.name\", { timeout: forever, timeout_if_down: 50ms } ] } ] }"; String yaml = Joiner.on("\n").join( "services:",
