Skip to content

Commit

Permalink
fix broken_config flaky test (#1055)
Browse files Browse the repository at this point in the history
  • Loading branch information
grafnu authored Dec 20, 2024
1 parent 4d72783 commit b00264d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ public class SequenceBase {
private static final String NOT_REPLACEMENT = " not ";
private static final String NOT_MISSING = " ";
private static final Duration STATE_CONFIG_HOLDOFF = Duration.ofMillis(1000);
public static final String ELAPSED_TIME_PREFIX = "@";
protected static Metadata deviceMetadata;
protected static String projectId;
protected static String cloudRegion;
Expand Down Expand Up @@ -1776,7 +1777,7 @@ private long waitTimeRemainingSec() {
}

private String timeSinceStart() {
return (System.currentTimeMillis() - startTestTimeMs) / 1000 + "s";
return ELAPSED_TIME_PREFIX + (System.currentTimeMillis() - startTestTimeMs) / 1000 + "s";
}

protected void untilTrue(String description, Supplier<Boolean> evaluator) {
Expand Down Expand Up @@ -2757,7 +2758,7 @@ protected void failed(Throwable e, Description description) {
if (debugLogLevel()) {
processComplete(e);
trace("Stack trace:", stackTraceString(e));
error("terminating test " + testName + " after " + timeSinceStart() + " "
error("terminating test " + testName + " at " + timeSinceStart() + " "
+ START_END_MARKER);
System.exit(EXIT_CODE_PRESERVE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void device_config_acked() {
});
}

@Test(timeout = TWO_MINUTES_MS)
@Test(timeout = THREE_MINUTES_MS)
@Feature(stage = STABLE, bucket = SYSTEM, score = 8)
@WithCapability(value = Status.class, stage = ALPHA)
@WithCapability(value = Logging.class, stage = ALPHA)
Expand Down

0 comments on commit b00264d

Please sign in to comment.