Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulkar committed Mar 24, 2023
1 parent 70e16c1 commit addaa47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cli/integration_tests/basic_monorepo/run_summary.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Setup

$ cat $(/bin/ls .turbo/runs/*.json | head -n1) | jq '.tasks | map(select(.taskId == "my-app#build")) | .[0].execution'
{
"start": "[0-9-:\.TZ]+", (re)
"duration": [0-9]+, (re)
"startTime": [0-9]+, (re)
"endTime": [0-9]+, (re)
"status": "built",
"error": null
}
Expand All @@ -29,8 +29,8 @@ Setup

$ cat $(/bin/ls .turbo/runs/*.json | head -n1) | jq '.tasks | map(select(.taskId == "util#build")) | .[0].execution'
{
"start": "[0-9-:\.TZ]+", (re)
"duration": [0-9]+, (re)
"startTime": [0-9]+, (re)
"endTime": [0-9]+, (re)
"status": "built",
"error": null
}
Expand Down
2 changes: 1 addition & 1 deletion cli/internal/runsummary/execution_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (ts *TaskExecutionSummary) MarshalJSON() ([]byte, error) {
Start int64 `json:"startTime"`
End int64 `json:"endTime"`
Status string `json:"status"`
Err error `json:"err"`
Err error `json:"error"`
}{
Start: ts.startAt.UnixMilli(),
End: ts.startAt.Add(ts.duration).UnixMilli(),
Expand Down

0 comments on commit addaa47

Please sign in to comment.