Skip to content

Commit

Permalink
Adjust timing with comment in indeterminately failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Heneveld committed Jan 22, 2025
1 parent ea6cc20 commit 09f01bc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,8 @@ public void testAttributeWhenReadyOptionsTimeoutIfDownTimesOut() throws Exceptio

@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:",
Expand Down

0 comments on commit 09f01bc

Please sign in to comment.