Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
8cb7d96
fs: don't conflate data and callback in appendFile
seishun Feb 28, 2017
4afa748
test: increase bufsize in child process write test
Trott Jun 12, 2017
5cb3fac
test: use mustNotCall in test-http-eof-on-connect
Trott Jun 9, 2017
cc92231
doc: fix out of date napi_callback doc
XadillaX Jun 9, 2017
465bd48
configure: add mips64el to valid_arch
thelostone-mc Jun 11, 2017
cbe7c5c
lib: correct typo in createSecureContext
danbev Jun 13, 2017
7874360
test: add mustCall() to child-process test
Trott Jun 11, 2017
80fa13b
test: use mustNotCall() in test-fs-watch
Trott Jun 10, 2017
9b74dde
doc: update async_hooks providers list
addaleax Jun 8, 2017
dc06a0a
doc: note that EoL platforms are not supported
gibfahn Apr 26, 2017
f5f2a0e
doc: sort and update /cc list for inspector issues
thelostone-mc Jun 12, 2017
58e177c
doc: document and test that methods return this
sam-github Jun 7, 2017
0d87b31
test: refactor test-fs-read-stream-inherit
Trott Jun 11, 2017
f28dd8e
doc: fixes a typo in the async_hooks documentation
Jun 13, 2017
6920d5c
test: change deprecated method to recommended
Trott Jun 13, 2017
af46cf6
test: refactor test-fs-watch-stop-async
Trott Jun 13, 2017
233545a
inspector,cluster: fix inspect port assignment
mutantcornholio Jun 11, 2017
c142f1d
doc: fix minor issues reported in #9538
tniessen Jun 6, 2017
c27ffad
doc: fix a few n-api doc issues
mhdawson Jun 13, 2017
5b3e5fa
src: remove void casts for clear_error_on_return
danbev Jun 13, 2017
406c09a
test: fix test-inspector-port-zero-cluster
refack Jun 1, 2017
80e6524
test: fix nits in test-fs-mkdir-rmdir.js
vsemozhetbyt Jun 14, 2017
e203e39
test: refactor test-cluster-worker-isconnected.js
cjihrig Jun 14, 2017
c046a21
util: ignore invalid format specifiers
targos Jun 14, 2017
a27a35b
src: fix decoding base64 with whitespace
seishun Jun 13, 2017
ba20627
test: refactor test-fs-read-stream
Trott Jun 13, 2017
5e59c2d
test: increase coverage for internal/module.js
Jun 14, 2017
18f073f
build: fail linter if linting not available
gibfahn Jun 13, 2017
31ae193
doc: small makeover for onboarding.md
addaleax Jun 2, 2017
2a95cfb
doc: fix typo in changelog
not-an-aardvark Jun 16, 2017
70fb1bd
test: improve http test reliability
mscdex Jun 15, 2017
2ce236e
build: check for linter in bin rather than lib
Trott Jun 15, 2017
ff568d4
tools: update ESLint to v4.0.0
Trott Jun 13, 2017
61714ac
doc: add hasIntl to test/common/README.md
danbev Jun 16, 2017
0d3b52e
test: add hasIntl to failing test
danbev Jun 15, 2017
10aee10
test: check zlib version for createDeflateRaw
danbev Jun 15, 2017
b2a5399
test: refactor test-fs-watch-stop-sync
Trott Jun 14, 2017
c68e472
v8: fix RegExp nits in v8_prof_polyfill.js
vsemozhetbyt Jun 15, 2017
d0f39cc
test: delete outdated fixtures/stdio-filter.js
vsemozhetbyt Jun 16, 2017
cb93283
doc: `path.relative` uses `cwd`
DuanPengfei Jun 16, 2017
d4a05b2
test: make test-http(s)-set-timeout-server alike
jklepatch Jun 12, 2017
11f4562
benchmark: remove needless RegExp capturing
vsemozhetbyt Jun 16, 2017
e786926
readline,repl,url,util: remove needless capturing
vsemozhetbyt Jun 16, 2017
c8b134b
test: remove node-tap lookalike
cjihrig Jun 15, 2017
2816677
net: fix abort on bad address input
BridgeAR Jun 16, 2017
3306fd1
test: accommodate AIX by watching file
Trott Jun 18, 2017
1fe455f
dgram: change parameter name in set(Multicast)TTL
tniessen Jun 17, 2017
1f32d9e
test: fix RegExp nits
vsemozhetbyt Jun 18, 2017
3322191
src: don't set --icu_case_mapping flag on startup
bnoordhuis Jun 15, 2017
57b7285
doc: mention rebasing of v?.x-staging post release
addaleax Jun 17, 2017
5840138
stream: fix `undefined` in Readable object mode
addaleax Jun 18, 2017
f49dd21
n-api: avoid crash in napi_escape_scope()
mhdawson Jun 13, 2017
0bb53a7
doc: make socket IPC examples more robust
cjihrig May 24, 2017
0a9e96e
stream: finish must always follow error
mcollina Jun 21, 2017
9ff9782
test: remove common module from test it thwarts
Trott Jun 17, 2017
9c2abc3
tools: fix indentation in required-modules.js
Trott Jun 18, 2017
b171e72
tools: apply stricter indentation rules to tools
Trott Jun 18, 2017
0ef687e
tools: fix error in custom ESLint rule
Trott Jun 19, 2017
b23f246
test: refactor test-stream2-writable
Trott Jun 20, 2017
f1d96f0
test: refactor test-http-set-timeout-server
Trott Jun 19, 2017
a63e54a
doc: update backporting guide
refack Jun 17, 2017
01461af
2017-06-29, Version 8.1.3 (Current)
rvagg Jun 21, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: fix nits in test-fs-mkdir-rmdir.js
* Add common.mustCall().
* Add check for error existence, not only for error details.
* Use test(), not match() in a boolean context.
* Properly reverse meanings of assert messages.

PR-URL: #13680
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
  • Loading branch information
vsemozhetbyt authored and addaleax committed Jun 21, 2017
commit 80e6524ff093878466a65550fccf3b42e5ce5ad9
15 changes: 8 additions & 7 deletions test/parallel/test-fs-mkdir-rmdir.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ fs.rmdirSync(d);
assert(!common.fileExists(d));

// Similarly test the Async version
fs.mkdir(d, 0o666, function(err) {
fs.mkdir(d, 0o666, common.mustCall(function(err) {
assert.ifError(err);

fs.mkdir(d, 0o666, function(err) {
assert.ok(err.message.match(/^EEXIST/), 'got EEXIST message');
assert.strictEqual(err.code, 'EEXIST', 'got EEXIST code');
assert.strictEqual(err.path, d, 'got proper path for EEXIST');
fs.mkdir(d, 0o666, common.mustCall(function(err) {
assert.ok(err, 'got no error');
assert.ok(/^EEXIST/.test(err.message), 'got no EEXIST message');
assert.strictEqual(err.code, 'EEXIST', 'got no EEXIST code');
assert.strictEqual(err.path, d, 'got no proper path for EEXIST');

fs.rmdir(d, assert.ifError);
});
});
}));
}));