Commit Graph
2957 Commits
Author SHA1 Message Date
r1cebank 2ddb2fad94 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-11 14:36:52 +05:30
Steven Scott bafa2288d8 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-11 10:22:40 +02:00
Pawel Golda 327a871579 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-11 11:53:20 +05:30
Stefania Sharp 23b4bf88a3 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-11 08:15:05 +02:00
Ruy Adorno 2ea902b47b 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-11 11:44:22 +05:30
Charlie Duong 58d26e2421 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-10 22:59:09 -07:00
Tobias Kieslich 7525df7af2 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-10 22:47:05 -07:00
Shakeel Mohamed a0ec1e668c 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-10 22:38:05 -07:00
Nigel Kibodeaux 87ee0b640e 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-10 22:05:24 -07:00
Edward Andrew Robinson 3784b2d839 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-10 21:54:41 -07:00
Christopher Sidebottom 152bf22d02 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-10 21:47:28 -07:00
Martin Michaelis adbc5d7d57 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-10 21:45:45 -07:00
Chris Jimenez 6af889615d 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-10 19:30:59 -07:00
Oliver Luebeck 1d7fbabaef 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-10 19:25:18 -07:00
Rich Trott 067d1f16de 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-10 19:22:59 -07:00
Jakub Mrowiec - Alkagar b3ce408098 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-10 17:32:06 -07:00
Rich Trott fa265a2cca 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-10 16:33:55 -07:00
Rimas Misevičius 92146e00fd 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-10 08:13:19 -07:00
Druotic 85a5a2c228 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-10 08:14:23 +02:00
Alireza Alidousti 7ba896e407 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-10 12:27:43 +08:00
matthewreed26 733d528ac4 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-10 12:18:11 +08:00
Daniel Kostro f2b9d5e41e 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-09 18:11:04 -04:00
cpandrews8 5f15fde4b2 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-09 17:41:47 -04:00
Seth Holladay fe38ace643 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-09 17:23:16 -04:00
Adil L 2badc6301e 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-09 16:54:53 -04:00
Charles T Wall III be3ac440dc 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-09 02:13:20 -07:00
Maurice Hayward abf8bae475 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-09 02:13:20 -07:00
tabulatedreams 5e93df6840 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-09 02:13:20 -07:00
Robin Lungwitz b5f3054eb6 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-09 02:13:19 -07:00
Ivan Etchart c11a30dc51 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-09 02:13:19 -07:00
Rafal Leszczynski c0c5e262dd 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-09 02:13:19 -07:00
Savio Lucena de2f4ea105 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-09 02:13:19 -07:00
Alex McKenzie 585c1199a2 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-09 02:13:19 -07:00
Colin Leong d00bb87cc7 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-09 02:13:18 -07:00
Emily Platzer 47d80384f9 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-09 02:13:18 -07:00
jmcgui05 b2e46c5b54 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-09 02:13:18 -07:00
Ben Michel 17857d4fc9 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-09 02:13:18 -07:00
Sushil Tailor 3953164e42 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-09 02:13:18 -07:00
Daniele Lisi 0662ebeef9 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-09 02:13:17 -07:00
Rob Paton 66a990b5ed 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-09 02:13:17 -07:00
nodexpertsdev d4fbffded4 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-09 02:13:17 -07:00
Gene Wu c80d9d6a93 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-09 02:13:17 -07:00
Justin Lee 721f6df705 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-09 02:13:16 -07:00
Pavel Pomerantsev 0fbe0a02df test: improve an error message
PR-URL: https://github.com/nodejs/node/pull/15921
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2017-10-09 02:13:16 -07:00
Uttam Pawar b8b248a9b3 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-09 02:13:16 -07:00
Joe Grace c4178abc64 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-09 02:13:16 -07:00
Charlie Duong 56c0e7d10f test: replace fixtureDir with fixtures module
This commit replaces the usage of common.fixturesDir with
fixtures.path.

PR-URL: https://github.com/nodejs/node/pull/15823
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: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2017-10-09 10:51:48 +02:00
Alex McKenzie 0e1a9fafdd 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.

PR-URL: https://github.com/nodejs/node/pull/15881
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
2017-10-09 08:23:04 +02:00
Christopher Choi b5e8ae4ff8 test: use common.fixtures module
Replace common.fixturesDir with usage of the common.fixtures module.

PR-URL: https://github.com/nodejs/node/pull/15891
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2017-10-08 20:23:51 -07:00
Paul Milham 7a8d51c079 test: replaced literals in errors with templates
PR-URL: https://github.com/nodejs/node/pull/15911
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2017-10-08 20:21:56 -07:00