diff options
author | Luigi Pinca <luigipinca@gmail.com> | 2018-05-06 09:15:30 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-05-14 18:53:08 +0200 |
commit | 60ef7d1a8f7f576651f4d0817e6568cc80e64f99 (patch) | |
tree | d324353a10e386d088135499c0165226ea54913c /test | |
parent | 37461878d0d29a987bb4ec8c7cbdfc8d1464f36d (diff) | |
download | android-node-v8-60ef7d1a8f7f576651f4d0817e6568cc80e64f99.tar.gz android-node-v8-60ef7d1a8f7f576651f4d0817e6568cc80e64f99.tar.bz2 android-node-v8-60ef7d1a8f7f576651f4d0817e6568cc80e64f99.zip |
test: fix assertion in test-console
Move the assertion after the second call to `console.time()` to
actually make sure that the time is not reset.
Refs: https://github.com/nodejs/node/pull/20442
PR-URL: https://github.com/nodejs/node/pull/20557
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-console.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-console.js b/test/parallel/test-console.js index 64df389be6..b044f5761e 100644 --- a/test/parallel/test-console.js +++ b/test/parallel/test-console.js @@ -142,12 +142,12 @@ console.timeEnd(NaN); console.time('test'); const time = console._times.get('test'); setTimeout(() => { - assert.deepStrictEqual(console._times.get('test'), time); common.expectWarning( 'Warning', 'Label \'test\' already exists for console.time()', common.noWarnCode); console.time('test'); + assert.deepStrictEqual(console._times.get('test'), time); console.timeEnd('test'); }, 1); |