Fix test time reporting

This commit is contained in:
Kovid Goyal 2020-04-02 16:35:54 +05:30
parent 6c9c141c3e
commit 82826db233
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -54,7 +54,7 @@ def main():
tests = get_matching_tests_for_name() tests = get_matching_tests_for_name()
st = window.performance.now() st = window.performance.now()
failed_tests, total = run_tests(tests) failed_tests, total = run_tests(tests)
time = window.performance.now() - st time = (window.performance.now() - st) / 1000
if failed_tests.length: if failed_tests.length:
console.error(f'{failed_tests.length} out of {total} failed in {time:.1f} seconds') console.error(f'{failed_tests.length} out of {total} failed in {time:.1f} seconds')
else: else: