Rich Trott
0e2db0e64e
test: fix lint error
...
Fix lint error introduced 03550a5c1e. Unused module `fs` is removed.
PR-URL: https://github.com/nodejs/node/pull/16145
Ref: https://github.com/nodejs/node/pull/15832#issuecomment-335808467
Reviewed-By: Bradley Farias <bradley.meck@gmail.com >
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-10-17 21:32:45 -07:00
Feon Sua
ceca43ba39
test:replace common.fixturesDir with commonfixtures
...
PR-URL: https://github.com/nodejs/node/pull/15832
Reviewed-By: Ryan Graham <r.m.graham@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-17 21:30:46 -07:00
Josh Lim
ae75af5292
test: replace fixturesDir to use fixtures module
...
PR-URL: https://github.com/nodejs/node/pull/15831
iReviewed-By: Ryan Graham <r.m.graham@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2017-10-17 21:30:02 -07:00
r1cebank
d96b2a7077
test: switch to use common.fixtures module for fixturesDir
...
PR-URL: https://github.com/nodejs/node/pull/15821
Reviewed-By: Ryan Graham <r.m.graham@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2017-10-17 21:28:37 -07:00
Steven Scott
c2345391cd
test: replace common.fixturesDir with fixtures
...
PR-URL: https://github.com/nodejs/node/pull/15845
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-10-17 21:22:27 -07:00
Pawel Golda
d4b454dd3c
test: fixturesDir replaced to fixtures module
...
replaced fs and use of fixturesDir to fixtures module and readKey method
PR-URL: https://github.com/nodejs/node/pull/15809
Reviewed-By: Ryan Graham <r.m.graham@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2017-10-17 21:22:02 -07:00
Stefania Sharp
d7ec89ce34
test: replace common.fixturesDir with fixtures
...
PR-URL: https://github.com/nodejs/node/pull/16015
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 21:21:45 -07:00
Ruy Adorno
25335ec513
test: replaces common.fixturesDir usage
...
In test/parallel/test-repl-require.js replaces usage of
common.fixturesDir with common/fixtures.
Part of Node.js Interactive 2017 Code & Learn
PR-URL: https://github.com/nodejs/node/pull/15818
Reviewed-By: Ryan Graham <r.m.graham@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2017-10-17 21:21:29 -07:00
Charlie Duong
a79b982155
test: added fs benchmark test
...
Modified fs benchmarks to use more unique args to avoid collision.
PR-URL: https://github.com/nodejs/node/pull/16049
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
2017-10-17 21:21:09 -07:00
Tobias Kieslich
92b5cf1d49
test: use common.fixtures.path()
...
PR-URL: https://github.com/nodejs/node/pull/16112
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
2017-10-17 21:20:52 -07:00
Shakeel Mohamed
b8f6d33f52
test: replace common.fixturesDir with fixtures
...
PR-URL: https://github.com/nodejs/node/pull/15857
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2017-10-17 21:18:41 -07:00
Nigel Kibodeaux
7788207a91
test: use fixtures module in test
...
Instead of using common.fixturesDir, uses the fixtures module in
test-http-get-pipeline-problem.
PR-URL: https://github.com/nodejs/node/pull/16117
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2017-10-17 21:18:18 -07:00
Edward Andrew Robinson
37235a392c
test: use template literals in test-string-decoder
...
`test/parallel/test-string-decoder.js` used to use string concatenation
this was migrated to use template literals. When concatenation
involved a newline we kept string concatenation, or to keep below 80
charters per line.
PR-URL: https://github.com/nodejs/node/pull/15884
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 21:18:01 -07:00
Christopher Sidebottom
c7b0c9b2cd
test: switch to fixtures module
...
In test-file-read-noexist, switch from common.fixturesDir to the
fixtures module.
PR-URL: https://github.com/nodejs/node/pull/15880
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-10-17 21:17:27 -07:00
Martin Michaelis
14b3f3af6a
test: rewrite assert message
...
`test/parallel/test-zlib-unzip-one-byte-chunks.js` uses a literal
string to describe the error if the string does not match itself
after zipping and unzipping. Changed to a more descriptive template
literal.
PR-URL: https://github.com/nodejs/node/pull/15879
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-10-17 21:17:08 -07:00
Chris Jimenez
228940d6ca
test: replace common.fixturesDir with fixtures
...
PR-URL: https://github.com/nodejs/node/pull/15806
Reviewed-By: Ryan Graham <r.m.graham@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2017-10-17 21:14:44 -07:00
Oliver Luebeck
80b276c910
test: replace fixturesDir with common.fixtures
...
In test-tls-honorcipherorder.js, use common.fixtures instead of
common.fixturesDir.
PR-URL: https://github.com/nodejs/node/pull/15907
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2017-10-17 21:14:12 -07:00
Rich Trott
6dc3c116f0
test: allow short benchmarks for tests
...
Enable short benchmarks for process and path benchmark tests. These have
been observed to fail in CI due to returning with zero operations
performed in the allotted time. We have a special environment variable
for other benchmark tests that can be set to make that allowable in
benchmarks. Set it for path and process.
PR-URL: https://github.com/nodejs/node/pull/16097
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Minwoo Jung <minwoo@nodesource.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
2017-10-17 21:13:32 -07:00
Jakub Mrowiec - Alkagar
cbbb229c81
test: update http test client function signatures
...
remove unused head arguments
PR-URL: https://github.com/nodejs/node/pull/15807
Reviewed-By: Ryan Graham <r.m.graham@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-17 21:13:06 -07:00
Rich Trott
0eb2826688
test: reduce run time for string_decoder benchmark
...
test-benchmark-string_decoder was timing out in CI. Reduce the run time
by sending appropriate options such that each benchmark file only runs
one combination of options.
PR-URL: https://github.com/nodejs/node/pull/16118
Reviewed-By: Refael Ackermann <refack@gmail.com >
2017-10-17 21:12:06 -07:00
Rimas Misevičius
f5e56aac0c
url: fix port overflow checking
...
This patch adds (port > 0xffff) check after each digit in the loop and
prevents integer overflow.
PR-URL: https://github.com/nodejs/node/pull/15794
Refs: https://github.com/w3c/web-platform-tests/pull/7602
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2017-10-17 21:06:55 -07:00
Daniel Kostro
497bcebf82
test: increase test coverage of readline-interface
...
Adds coverage for:
- question callback
- history navigation
- bad historySize option
- multi-line output
- history is bound and most recent elements are preserved
PR-URL: https://github.com/nodejs/node/pull/16062
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2017-10-17 21:06:17 -07:00
Seth Holladay
1be3f50d24
test: improve crypto HMAC test assertions
...
Fixes argument order for assertions and makes their failure messages
more descriptive and easier to debug.
PR-URL: https://github.com/nodejs/node/pull/16026
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Lance Ball <lball@redhat.com >
2017-10-17 20:57:14 -07:00
Jonathan Eskew
2c44072ea1
test: add tests of querystring benchmark
...
PR-URL: https://github.com/nodejs/node/pull/16052
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: Timothy Gu <timothygu99@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2017-10-17 20:47:54 -07:00
Druotic
6f42b680e3
test: replace common.fixturesDir w/ fixtures.path
...
PR-URL: https://github.com/nodejs/node/pull/15819
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
2017-10-11 02:06:15 -04:00
Alireza Alidousti
b1e6373dcc
test: replaces fixturesDir with fixtures
...
PR-URL: https://github.com/nodejs/node/pull/15838
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2017-10-11 02:06:15 -04:00
matthewreed26
e48c8b3b6c
test: replace fixtureDir with fixtures.path
...
PR-URL: https://github.com/nodejs/node/pull/15943
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
2017-10-11 02:06:14 -04:00
cpandrews8
572492a088
test: clarify assert messages in crypto tests
...
PR-URL: https://github.com/nodejs/node/pull/16019
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Lance Ball <lball@redhat.com >
2017-10-11 02:06:14 -04:00
Adil L
d962ee35de
test: use common.fixtures module for file path
...
PR-URL: https://github.com/nodejs/node/pull/16017
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2017-10-11 02:06:13 -04:00
Charles T Wall III
5d63c1033d
test: create benchmark test for misc and module
...
PR-URL: https://github.com/nodejs/node/pull/16044
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:11 -04:00
Maurice Hayward
f8496553df
test: use fixtures module
...
PR-URL: https://github.com/nodejs/node/pull/16034
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:11 -04:00
tabulatedreams
e4f0483fb9
test: replace fixturesDir with fixtures module
...
PR-URL: https://github.com/nodejs/node/pull/16036
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:10 -04:00
Robin Lungwitz
6a44442b5f
test: use fixtures.readKey
...
Replace the common.fixturesDir by fixtures.readKey
in http2 subsystem test 'server startup'.
PR-URL: https://github.com/nodejs/node/pull/15892
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:09 -04:00
Ivan Etchart
f7ab12685e
test: replace fixturesDir with fixtures module
...
`test/parallel/test-tls-ecdh.js` was loading fixture keys using
`common.fixturesDir`. Now it's using `fixtures.readKey` instead.
PR-URL: https://github.com/nodejs/node/pull/15893
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:09 -04:00
Rafal Leszczynski
36a0d3f0b1
test: cleanup test-buffer-sharedarraybuffer
...
remove third argument `0` from calls to `assert.deepStrictEqual`
PR-URL: https://github.com/nodejs/node/pull/15896
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:09 -04:00
Savio Lucena
bbbf58e951
test: change fixturesDir to fixtures.path
...
PR-URL: https://github.com/nodejs/node/pull/15902
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:08 -04:00
Alex McKenzie
ccecaca056
test: replaced fixturesDir with fixtures module
...
This was an assigned task at Node.js Interactive North America 2017.
This replaced the fixturesDir exported by the common module with
the fixturesDir on the common/fixtures module in the path-makelong test.
PR-URL: https://github.com/nodejs/node/pull/15908
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:08 -04:00
Colin Leong
547c284335
test: replace string concatenation with templates
...
PR-URL: https://github.com/nodejs/node/pull/15903
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Refael Ackermann <refack@gmail.com >
2017-10-11 02:06:07 -04:00
Emily Platzer
a625d82c78
test: updated error message
...
PR-URL: https://github.com/nodejs/node/pull/15906
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:07 -04:00
jmcgui05
3b682aa857
test: assert.strictEqual using template literals
...
PR-URL: https://github.com/nodejs/node/pull/15944
Reviewed-By: Lance Ball <lball@redhat.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:07 -04:00
Ben Michel
329d22fb32
test: use common.fixtures in tls test
...
PR-URL: https://github.com/nodejs/node/pull/15965
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
2017-10-11 02:06:06 -04:00
Sushil Tailor
9f9bd38aa0
test: replace error msg w/ template literal
...
PR-URL: https://github.com/nodejs/node/pull/15910
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Refael Ackermann <refack@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:06 -04:00
Daniele Lisi
181d4bf5b3
test: add NODE_UNIQUE_ID value to err message
...
PR-URL: https://github.com/nodejs/node/pull/15914
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:06 -04:00
Rob Paton
2d25a3b5f8
test: replace string concatenation with template
...
PR-URL: https://github.com/nodejs/node/pull/15915
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:05 -04:00
nodexpertsdev
802f99ba27
test: change concatenation to template literal
...
PR-URL: https://github.com/nodejs/node/pull/15916
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:05 -04:00
Gene Wu
c5c51ebae4
test: improve asset msg in test
...
Add result to part of assert message.
PR-URL: https://github.com/nodejs/node/pull/15918
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:05 -04:00
Justin Lee
906f2b14ca
test: remove message from asserts
...
PR-URL: https://github.com/nodejs/node/pull/15920
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:04 -04:00
Pavel Pomerantsev
a14b447bbb
test: improve an error message
...
PR-URL: https://github.com/nodejs/node/pull/15921
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:04 -04:00
Uttam Pawar
27e0532eab
test: added string_decoder.js a parallel test
...
PR-URL: https://github.com/nodejs/node/pull/15923
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:03 -04:00
Joe Grace
2ea339a346
test: use fixtures module instead of common
...
PR-URL: https://github.com/nodejs/node/pull/15925
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2017-10-11 02:06:03 -04:00