Skip to content

Commit

Permalink
Fix regression with JSON format. duration should be int64 not float64
Browse files Browse the repository at this point in the history
  • Loading branch information
aelsabbahy committed Nov 1, 2015
1 parent b883790 commit feba9ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions outputs/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func (r Json) Output(results <-chan []resource.TestResult, startTime time.Time)
}
m := struct2map(testResult)
m["summary-line"] = humanizeResult(testResult)
m["duration"] = int64(m["duration"].(float64))
resultsOut = append(resultsOut, m)
testCount++
}
Expand Down

0 comments on commit feba9ba

Please sign in to comment.