Skip to content

Commit

Permalink
Remove redundant endTimestamp field
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardb committed Jun 19, 2024
1 parent 9869f17 commit 0b2d779
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ abstract class BuildTaskService :
name = event.descriptor?.name.toString(),
duration = (event.result.endTime - event.result.startTime).milliseconds,
startTimestamp = event.result.startTime,
endTimestamp = event.result.endTime,
state = when {
result.isFromCache -> IS_FROM_CACHE
result.isUpToDate -> UP_TO_DATE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ data class MeasuredTask(
val name: String,
val duration: Duration,
val startTimestamp: Long,
val endTimestamp: Long,
val state: State
) {
enum class State {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ class BuildTimePluginTest {
assertThat(executionData.executedTasks).hasSize(1).first().satisfies({ task ->
assertThat(task.name).isEqualTo(":help")
assertThat(task.state).isEqualTo(MeasuredTask.State.EXECUTED)
assertThat(task.endTimestamp - task.startTimestamp).isEqualTo(task.duration.inWholeMilliseconds)
})
}
}
Expand Down

0 comments on commit 0b2d779

Please sign in to comment.