Skip to content

Commit

Permalink
Fix time formatting and automatic test name
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoncek committed Sep 25, 2023
1 parent 105828d commit d3fda26
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void arguments(String[] args) throws Exception {
}

private static String toDashCase(String string) {
var result = new StringBuilder();
var result = new StringBuilder("/");

boolean wasLowerCase = false;

Expand Down Expand Up @@ -147,7 +147,7 @@ public final LocalDateTime getEndTime() {

public final String getFormattedDuration() {
var duration = Duration.between(startTime, endTime);
return String.format("%02d:%02d:%02d.%d", duration.toHours(), duration.toMinutesPart(), duration.toSecondsPart(), duration.toMillisPart());
return String.format("%02d:%02d:%02d.%03d", duration.toHours(), duration.toMinutesPart(), duration.toSecondsPart(), duration.toMillisPart());
}

protected abstract void validate(Iterable<RpmFile> rpms) throws Exception;
Expand Down

0 comments on commit d3fda26

Please sign in to comment.