mirror of https://github.com/pulumi/pulumi.git
f3f0b19b33
In some cases we only display full seconds, particularly when rendering the summary event, and when converting the engine event for use in the API. However we are currently not consistent with that, rounding up in the display code and rounding down when converting the engine event. It probably doesn't matter what exactly we are doing here, but for writing display snapshot tests it does. Let's split the difference here, and always round up, so we never give the impression that the operation took no time. It doesn't look like Pulumi Cloud shows this at all, so it probably doesn't matter for users, and we could just round up for everyone as well. I don't have strong opinions about that. |
||
---|---|---|
.. | ||
internal/terminal | ||
testdata | ||
diff.go | ||
diff_test.go | ||
display.go | ||
doc.go | ||
events.go | ||
events_test.go | ||
json.go | ||
jsonmessage.go | ||
object_diff.go | ||
object_diff_test.go | ||
options.go | ||
progress.go | ||
progress_test.go | ||
query.go | ||
rows.go | ||
sigint_unix.go | ||
sigint_windows.go | ||
tableutil.go | ||
tree.go | ||
tree_test.go | ||
watch.go |