Skip to content

Commit 66eb35f

Browse files
Trottjasnell
authored andcommitted
test: rename common.ddCommand()
Change common.ddCommand() to common.createZeroFilledFile(). PR-URL: #23411 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: George Adams <george.adams@uk.ibm.com>
1 parent 8561462 commit 66eb35f

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

test/common/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ symlinks
5252
([SeCreateSymbolicLinkPrivilege](https://msdn.microsoft.com/en-us/library/windows/desktop/bb530716(v=vs.85).aspx)).
5353
On non-Windows platforms, this always returns `true`.
5454

55-
### ddCommand(filename)
55+
### createZeroFilledFile(filename)
5656

5757
Creates a 10 MB file of all null characters.
5858

test/common/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function childShouldThrowAndAbort() {
173173
});
174174
}
175175

176-
function ddCommand(filename) {
176+
function createZeroFilledFile(filename) {
177177
const fd = fs.openSync(filename, 'w');
178178
fs.ftruncateSync(fd, 10 * 1024 * 1024);
179179
fs.closeSync(fd);
@@ -697,7 +697,7 @@ module.exports = {
697697
busyLoop,
698698
canCreateSymLink,
699699
childShouldThrowAndAbort,
700-
ddCommand,
700+
createZeroFilledFile,
701701
disableCrashOnUnhandledRejection,
702702
enoughTestCpu,
703703
enoughTestMem,

test/common/index.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const {
2222
PIPE,
2323
hasIPv6,
2424
childShouldThrowAndAbort,
25-
ddCommand,
25+
createZeroFilledFile,
2626
platformTimeout,
2727
allowGlobals,
2828
mustCall,
@@ -71,7 +71,7 @@ export {
7171
PIPE,
7272
hasIPv6,
7373
childShouldThrowAndAbort,
74-
ddCommand,
74+
createZeroFilledFile,
7575
platformTimeout,
7676
allowGlobals,
7777
mustCall,

test/parallel/test-http-chunk-problem.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function executeRequest(cb) {
6363

6464
tmpdir.refresh();
6565

66-
common.ddCommand(filename);
66+
common.createZeroFilledFile(filename);
6767

6868
server = http.createServer(function(req, res) {
6969
res.writeHead(200);

test/parallel/test-pipe-file-to-http.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const server = http.createServer(function(req, res) {
5656
server.listen(0);
5757

5858
server.on('listening', function() {
59-
common.ddCommand(filename);
59+
common.createZeroFilledFile(filename);
6060
makeRequest();
6161
});
6262

0 commit comments

Comments
 (0)