Sam Roberts
6b8d4cab41
test: tls key/cert ordering not necessary
...
PR-URL: https://github.com/nodejs/node/pull/9800
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2017-01-31 17:07:45 -05:00
Sam Roberts
d50e8d8af9
tls: document and test option-less createServer
...
Either the options or the listener argument to tls.createServer() was
optional, but not both. This makes no sense, so align the argument
checking and documentation with net.createServer(), which accepts the
same option sequence, and which tls.createServer() is modelled on.
PR-URL: https://github.com/nodejs/node/pull/9800
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2017-01-31 17:07:45 -05:00
Sam Roberts
89db5fcc23
tls: fix/annotate connect arg comments
...
PR-URL: https://github.com/nodejs/node/pull/9800
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2017-01-31 17:07:45 -05:00
Rich Trott
b2b2774325
test: refactor test-handle-wrap-close-abort
...
* use common.mustCall() to confirm number of uncaught exceptions
* var -> const
* specify duration of 1ms for setTimeout() and setInterval()
PR-URL: https://github.com/nodejs/node/pull/10188
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2017-01-31 17:07:45 -05:00
Adrian Estrada
c65dfa9b12
test: add ES6 and strictEqual to test-fs-truncate
...
- use const and let for variables
- replace assert.equal with assert.strictEqual
PR-URL: https://github.com/nodejs/node/pull/10167
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Italo A. Casas <me@italoacasas.com >
2017-01-31 17:07:44 -05:00
Vse Mozhet Byt
e53262cda9
doc: modernize child_process example code
...
1. equal => strictEqual.
2. let => const for the variable that is not reassigned.
3. fix spaces.
4. stringify erroneous raw buffer outputs.
5. fix a typo.
PR-URL: https://github.com/nodejs/node/pull/10102
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2017-01-31 17:07:44 -05:00
pallxk
9988f02025
doc: fix typo in code example of 'path' module
...
PR-URL: https://github.com/nodejs/node/pull/10136
Reviewed-By: Brian White <mscdex@mscdex.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2017-01-31 17:07:44 -05:00
James Tenenbaum
951ddb3d53
test: improving crypto fips
...
- using strictEqual instead equal
- cast `response` to Number()
PR-URL: https://github.com/nodejs/node/pull/10002
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Italo A. Casas <me@italoacasas.com >
2017-01-31 17:07:44 -05:00
Italo A. Casas
a75883ec7c
test: stream readableListening internal state
...
PR-URL: https://github.com/nodejs/node/pull/9864
Refs: https://github.com/nodejs/node/issues/8683
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2017-01-31 17:07:44 -05:00
Michaël Zasso
e8effa434e
tools: enforce consistent operator linebreak style
...
Adds the `operator-linebreak` rule to our ESLint config.
PR-URL: https://github.com/nodejs/node/pull/10178
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Teddy Katz <teddy.katz@gmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2017-01-31 17:07:44 -05:00
Michaël Zasso
5ddd508304
lib,test: use consistent operator linebreak style
...
We have a tacit rule that for multiline statements, the operator should
be placed before the linebreak. This commit commit fixes the few
violations of this rule in the code base.
This allows us to enable the corresponding ESLint rule.
PR-URL: https://github.com/nodejs/node/pull/10178
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Teddy Katz <teddy.katz@gmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
2017-01-31 17:07:44 -05:00
Jonathan Darling
718b5902bc
doc: standardizing on make -j4
...
Standardizes docs to use -j4 instead of -j8 as it appears to be the
most inclusive recommendation based on discussion in
https://github.com/nodejs/node/pull/9961 .
PR-URL: https://github.com/nodejs/node/pull/9961
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
2017-01-31 17:07:44 -05:00
Jonathan Darling
5b6317b10f
doc: add note to parallelize make
...
Adds a note to the BUILDING doc to encourage parallelizing make. When I
first built node I didn't know this trick and thought that the build was
just stuck in an infinite loop after waiting for 10 minutes.
Refs: https://github.com/nodejs/node/issues/8286
Refs: https://github.com/nodejs/node/pull/9881
PR-URL: https://github.com/nodejs/node/pull/9961
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
2017-01-31 17:07:44 -05:00
Daniel Bevenius
0162908708
tools: add macosx-firwall script to avoid popups
...
Currently, there are a number of popups that get displayed when running
the tests asking to accept incoming network connections. Rules can be
added manually to the socket firewall on Mac OS X but getting this right
might not be obvious and quite a lot of time can be wasted trying to get
the rules right. This script hopes to simplify things a little so that
it can be re-run when needed.
The script should be runnable from both the projects root directory and
from the tools directory, for example:
$ sudo ./tools/macosx-firewall.sh
Fixes: https://github.com/nodejs/node/issues/8911
PR-URL: https://github.com/nodejs/node/pull/10114
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2017-01-31 17:07:44 -05:00
Matt Phillips
56a512f7be
test: check for error on invalid signal
...
Asserts that an error should be thrown when
an invalid signal is passed to process.kill().
PR-URL: https://github.com/nodejs/node/pull/10026
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2017-01-31 17:07:44 -05:00
davidmarkclements
8e7f150a8e
test: refactor test-http-unix-socket
...
Use `common.mustCall()` and `common.fail()` where appropriate.
Change `assert.equal` to `assert.strictEqual` to ensure specificity.
Change var declarations to const to take advantage of ES6 immutable
bindings.
PR-URL: https://github.com/nodejs/node/pull/10072
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com >
2017-01-31 17:07:44 -05:00
joyeecheung
717b4b4e8a
test: increase test coverage of BufferList
...
Add tests for edges cases of BufferList:
- test operations when the length is 0
- test operations when the list only has one element
PR-URL: https://github.com/nodejs/node/pull/10171
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2017-01-31 17:07:44 -05:00
Karl Böhlmark
b5f747187d
http: remove stale timeout listeners
...
In order to prevent a memory leak when using keep alive, ensure that the
timeout listener for the request is removed when the response has ended.
PR-URL: https://github.com/nodejs/node/pull/9440
Reviewed-By: Evan Lucas <evanlucas@me.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2017-01-31 17:07:44 -05:00
Rich Trott
a56b22e881
test: fix flaky test-net-socket-timeout
...
The setTimeout() call is unneeded. If the socket never times out, then
the test will never finish. Because timers can be unreliable on machines
under load, using setTimeout() here effectively creates a race
condition.
PR-URL: https://github.com/nodejs/node/pull/10172
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com >
2017-01-31 17:07:44 -05:00
Jeremiah Senkpiel
7815efa5c1
doc: add some info on tty#setRawMode()
...
Partially taken from https://linux.die.net/man/3/cfmakeraw
A very simple test script:
```
if (process.argv[2] === 'raw')
process.stdin.setRawMode(true)
process.stdin.on('data', (chunk) => {
console.log(chunk)
console.log(chunk.toString())
})
```
Refs: https://github.com/nodejs/node/pull/10037
PR-URL: https://github.com/nodejs/node/pull/10147
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2017-01-31 17:07:44 -05:00
Kyle Corsi
58c5bdc57c
test: refactor test-net-keepalive.js
...
- Replace require() vars with const.
- Replace assert.equal() with assert.strictEqual().
- Add common.mustCall() to the setTimeout() callback.
PR-URL: https://github.com/nodejs/node/pull/9995
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2017-01-31 17:07:44 -05:00
anoff
639ef411b4
doc: update path.format description and examples
...
* removed pseudo-code
* added info on which properties have priority
* modified examples to show ignored properties
PR-URL: https://github.com/nodejs/node/pull/10046
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Sam Roberts <vieuxtech@gmail.com >
2017-01-31 17:07:44 -05:00
Fedor Indutny
8ea4487ca7
process: add process.memoryUsage.external
...
PR-URL: https://github.com/nodejs/node/pull/9587
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Johan Bergström <bugs@bergstroem.nu >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2017-01-31 17:07:44 -05:00
Michaël Zasso
f77fcf893f
deps: cherry-pick baba152 from V8 upstream
...
Original commit message:
fix stepping out of across throwing.
R=jgruber@chromium.org
BUG=v8:5559
Review-Url: https://codereview.chromium.org/2445233004
Cr-Commit-Position: refs/heads/master@{#40549}
PR-URL: https://github.com/nodejs/node/pull/10689
Fixes: https://github.com/nodejs/node/issues/9175
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com >
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com >
2017-01-31 17:07:44 -05:00
Matthew Avery
fdc373d639
deps: fix compile bug in v8/lookup.h
...
Fixed a small error that manifests when --debug is specified. This
seems to have been introduced during the backport #9422 .
Ref: https://github.com/nodejs/node/pull/9422
PR-URL: https://github.com/nodejs/node/pull/10525
Reviewed-By: ofrobots - Ali Ijaz Sheikh <ofrobots@google.com >
Reviewed-By: mhdawson - Michael Dawson <michael_dawson@ca.ibm.com >
2017-01-31 17:07:44 -05:00
Myles Borins
3f61aae59d
Working on v6.9.6
...
PR-URL: https://github.com/nodejs/node/pull/11081
2017-01-31 17:06:40 -05:00
Myles Borins
37a8051594
2017-01-31, Version 6.9.5 'Boron' (LTS)
...
This is a security release of the 'Boron' release line to upgrade
OpenSSL to version 1.0.2k
Although the OpenSSL team have determined a maximum severity rating
of "moderate", the Node.js crypto team (Ben Noordhuis, Shigeki Ohtsu
and Fedor Indutny) have determined the impact to Node users is "low".
Details on this determination can be found on the Nodejs.org website
https://nodejs.org/en/blog/vulnerability/openssl-january-2017/
Notable Changes:
* deps:
- upgrade openssl sources to 1.0.2k (Shigeki Ohtsu)
https://github.com/nodejs/node/pull/11021
PR-URL: https://github.com/nodejs/node/pull/11081
v6.9.5
2017-01-31 13:28:45 -05:00
Shigeki Ohtsu
87ac44974a
deps: update openssl asm and asm_obsolete files
...
Regenerate asm files with Makefile and CC=gcc and ASM=gcc where
gcc-5.4.0. Also asm files in asm_obsolete dir to support old compiler
and assembler are regenerated without CC and ASM envs
PR-URL: https://github.com/nodejs/node/pull/11021
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-01-30 18:30:22 -05:00
Shigeki Ohtsu
a4b43a7ef9
deps: add -no_rand_screen to openssl s_client
...
In openssl s_client on Windows, RAND_screen() is invoked to initialize
random state but it takes several seconds in each connection.
This added -no_rand_screen to openssl s_client on Windows to skip
RAND_screen() and gets a better performance in the unit test of
test-tls-server-verify.
Do not enable this except to use in the unit test.
Fixes: https://github.com/nodejs/io.js/issues/1461
PR-URL: https://github.com/nodejs/io.js/pull/1836
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-01-30 18:30:22 -05:00
Shigeki Ohtsu
c4678d2f9a
openssl: fix keypress requirement in apps on win32
...
Reapply b910613792 .
Fixes: https://github.com/iojs/io.js/issues/589
PR-URL: https://github.com/iojs/io.js/pull/1389
Reviewed-By: Fedor Indutny <fedor@indutny.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-01-30 18:30:22 -05:00
Shigeki Ohtsu
f5b77fdf8d
deps: fix asm build error of openssl in x86_win32
...
See
https://mta.openssl.org/pipermail/openssl-dev/2015-February/000651.html
iojs needs to stop using masm and move to nasm or yasm on Win32.
Fixes: https://github.com/iojs/io.js/issues/589
PR-URL: https://github.com/iojs/io.js/pull/1389
Reviewed-By: Fedor Indutny <fedor@indutny.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-01-30 18:30:22 -05:00
Fedor Indutny
58fae148fa
deps: fix openssl assembly error on ia32 win32
...
`x86masm.pl` was mistakenly using .486 instruction set, why `cpuid` (and
perhaps others) are requiring .686 .
Fixes: https://github.com/iojs/io.js/issues/589
PR-URL: https://github.com/iojs/io.js/pull/1389
Reviewed-By: Fedor Indutny <fedor@indutny.com >
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp >
2017-01-30 18:30:22 -05:00
Shigeki Ohtsu
d623e8c5b9
deps: copy all openssl header files to include dir
...
All symlink files in `deps/openssl/openssl/include/openssl/`
are removed and replaced with real header files to avoid
issues on Windows. Two files of opensslconf.h in crypto and
include dir are replaced to refer config/opensslconf.h.
PR-URL: https://github.com/nodejs/node/pull/11021
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-01-30 18:30:22 -05:00
Shigeki Ohtsu
3f2bef60b8
deps: upgrade openssl sources to 1.0.2k
...
This replaces all sources of openssl-1.0.2k.tar.gz into
deps/openssl/openssl
PR-URL: https://github.com/nodejs/node/pull/11021
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl >
2017-01-30 18:30:22 -05:00
Myles Borins
1a47e5f409
Working on v6.9.5
...
PR-URL: https://github.com/nodejs/node/pull/10640
2017-01-05 17:49:40 -05:00
Myles Borins
f098f8295c
2017-01-05, Version 6.9.4 'Boron' (LTS)
...
This is a special release that contains 0 commits. While promoting
additional platforms for v6.9.3 after the release, the tarballs on the
release server were overwritten and now have different shasums. In
order to remove any ambiguity around the release we have opted to do a
semver patch release with no changes.
v6.9.4
2017-01-05 15:28:48 -05:00
Myles Borins
9844692719
Working on v6.9.4
...
PR-URL: https://github.com/nodejs/node/pull/10394
2017-01-03 18:51:59 -05:00
Myles Borins
42149d7346
2017-01-03, Version 6.9.3 'Boron' (LTS) Release
...
This LTS release comes with 312 commits. This includes 229 that are
test related, 62 that are docs related, 17 which are build / tools
related, and 4 commits which are updates to dependencies.
Notable Changes:
* build:
- shared library support is now working for AIX builds
(Stewart Addison) https://github.com/nodejs/node/pull/9675
* deps:
- *npm*: upgrade npm to 3.10.10 (Rebecca Turner)
https://github.com/nodejs/node/pull/9847
- *V8*: Destructuring of arrow function arguments via computed
property no longer throws (Michaël Zasso)
https://github.com/nodejs/node/pull/10386 )
* inspector:
- /json/version returns object, not an object wrapped in an array
(Ben Noordhuis) https://github.com/nodejs/node/pull/9762
* module:
- using --debug-brk and --eval together now works as expected
(Kelvin Jin) https://github.com/nodejs/node/pull/8876
* process:
- improve performance of nextTick up to 20% (Evan Lucas)
https://github.com/nodejs/node/pull/8932
* repl:
- the division operator will no longer be accidentally parsed as
regex (Teddy Katz) https://github.com/nodejs/node/pull/10103
- improved support for generator functions (Teddy Katz)
https://github.com/nodejs/node/pull/9852
* timers:
- Re canceling a cancelled timers will no longer throw
(Jeremiah Senkpiel) https://github.com/nodejs/node/pull/9685
PR-URL: https://github.com/nodejs/node/pull/10394
v6.9.3
2017-01-03 17:36:50 -05:00
Michaël Zasso
868e5e624c
build: remove node.dsYM directory
...
It was added by mistake in
https://github.com/nodejs/node/commit/d283704cd6cb08ef012de60b6857cb2c153eee63
PR-URL: https://github.com/nodejs/node/pull/10463
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Johan Bergström <bugs@bergstroem.nu >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2016-12-27 15:02:40 -05:00
Sam Shull
dee5a7f9be
test: invalid package.json causes error when require()ing in directory
...
Requiring a file from a directory that contains an invalid package.json
file should throw an error.
PR-URL: https://github.com/nodejs/node/pull/10044
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-12-26 19:43:51 +01:00
sarahmeyer
1684d6d65e
doc: update CONTRIBUTING.MD with link to V8 guide
...
Currently, two of the guides in the `/doc/guides` directory are actually
guides for working on the Nodei.js project. Of those, one is linked from
this page. This change adds a note to point people to the other.
PR-URL: https://github.com/nodejs/node/pull/10070
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Myles Borins <myles.borins@gmail.com >
2016-12-26 19:37:09 +01:00
Adao Junior
487f91a097
test: refactor domain test
...
Use assert.strictEqual() instead of assert.equal().
PR-URL: https://github.com/nodejs/node/pull/10269
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Italo A. Casas <me@italoacasas.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-12-26 19:34:43 +01:00
Segu Riluvan
26aa148ac5
test: refactor test-child-process-stdin
...
Use assert.strictEqual instead of assert.equal and assert.ok
PR-URL: https://github.com/nodejs/node/pull/10420
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-12-26 19:33:34 +01:00
Wallace Zhang
25b76a44a7
test: test error messages in test-dns-regress-7070
...
Add a RegExp as a second argument to assert.throws().
PR-URL: https://github.com/nodejs/node/pull/10058
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2016-12-26 19:31:52 +01:00
Josh Mays
8389a1eef4
test: refactor test-pipe-file-to-http
...
Changing var defs to const/let, changing assert.equal to
assert.strictEqual. Wrapping functions called once with
common.mustCall
PR-URL: https://github.com/nodejs/node/pull/10054
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-12-26 19:31:16 +01:00
Amar Zavery
f9f2cda5dc
test: refactor test-cluster-send-handle-twice.js
...
- `var` --> `const` as applicable
- `assert.equal` --> `assert.strictEqual`
- `assert(false, ..)` --> `common.fail()`
- `common.mustCall` for functions that need to be called exactly once
- modified an `assert(!signal, 'Worker exited by a signal');` call to
`assert.strictEqual(signal, null);` call as that made more sense
PR-URL: https://github.com/nodejs/node/pull/10049
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2016-12-26 19:30:43 +01:00
Sam Shull
aba15fb9f2
test: add regex check in test-buffer-bad-overload
...
Creating a buffer from a number should throw an error with a message
that describes the issue.
PR-URL: https://github.com/nodejs/node/pull/10038
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-12-26 19:29:19 +01:00
Travis Bretton
ac9348d79f
test: refactoring test-pipe-head
...
- Updated assert.equal to assert.strictEqual
- Updated 'var' to 'const'
- Using template literals
PR-URL: https://github.com/nodejs/node/pull/10036
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Italo A. Casas <me@italoacasas.com >
2016-12-26 19:27:59 +01:00
Ken Russo
0ab2cfc64e
test: add second argument to assert.throws()
...
The assert.throws() calls in test-event-emitter-max-listeners.js
should include a constructor or RegExp as a second argument.
PR-URL: https://github.com/nodejs/node/pull/9987
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2016-12-26 19:26:44 +01:00
malen
610ec557a6
test: refactor test-child-process-ipc
...
Change var to const or let.
Change assert.equal() to assert.strictEqual().
PR-URL: https://github.com/nodejs/node/pull/9990
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
2016-12-26 19:25:07 +01:00