Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-tkachenko-datadog committed Feb 27, 2024
1 parent a63f17e commit e15c169
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public BuildData(Run<?, ?> run, @Nullable TaskListener listener) throws IOExcept
durationInMs = System.currentTimeMillis() - startTime;
}
this.duration = durationInMs;
if (duration != 0 && startTime != 0 && !run.isBuilding()) {
if (duration != 0 && startTime != 0 && !CITags.STATUS_RUNNING.equals(this.result)) {
this.endTime = startTime + duration;
}

Expand Down

0 comments on commit e15c169

Please sign in to comment.