Browse Source

test: change duration_ms to duration

The test script (tools/test.py) logs duration as "duration_ms: x.y".
This is confusing (as the duration is measured in seconds).

New example output: duration: 0.212s

PR-URL: https://github.com/nodejs/node/pull/7133
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
v6.x
Gibson Fahnestock 9 years ago
committed by Evan Lucas
parent
commit
e8b1456d8b
  1. 2
      tools/test.py

2
tools/test.py

@ -310,7 +310,7 @@ class TapProgressIndicator(SimpleProgressIndicator):
(duration.seconds + duration.days * 24 * 3600) * 10**6) / 10**6
logger.info(' ---')
logger.info(' duration_ms: %d.%d' % (total_seconds, duration.microseconds / 1000))
logger.info(' duration: %d.%ds' % (total_seconds, duration.microseconds / 1000))
logger.info(' ...')
def Done(self):

Loading…
Cancel
Save