Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: common.js -> common #917

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion test/fixtures/clustered-server/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var http = require('http');
var cluster = require('cluster');
var common = require('../../common.js');
var common = require('../../common');

function handleRequest(request, response) {
response.end('hello world\n');
Expand Down
2 changes: 1 addition & 1 deletion test/gc/test-http-client-connaborted.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var http = require('http'),
count = 0,
countGC = 0,
todo = 500,
common = require('../common.js'),
common = require('../common'),
assert = require('assert'),
PORT = common.PORT;

Expand Down
2 changes: 1 addition & 1 deletion test/gc/test-http-client-onerror.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var http = require('http'),
count = 0,
countGC = 0,
todo = 500,
common = require('../common.js'),
common = require('../common'),
assert = require('assert'),
PORT = common.PORT;

Expand Down
2 changes: 1 addition & 1 deletion test/gc/test-http-client-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var http = require('http'),
count = 0,
countGC = 0,
todo = 550,
common = require('../common.js'),
common = require('../common'),
assert = require('assert'),
PORT = common.PORT;

Expand Down
2 changes: 1 addition & 1 deletion test/gc/test-http-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var http = require('http'),
count = 0,
countGC = 0,
todo = 500,
common = require('../common.js'),
common = require('../common'),
assert = require('assert'),
PORT = common.PORT;

Expand Down
2 changes: 1 addition & 1 deletion test/gc/test-net-timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var net = require('net'),
count = 0,
countGC = 0,
todo = 500,
common = require('../common.js'),
common = require('../common'),
assert = require('assert'),
PORT = common.PORT;

Expand Down
2 changes: 1 addition & 1 deletion test/message/error_exit.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');

process.on('exit', function(code) {
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-cli-eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if (module.parent) {
process.exit(42);
}

var common = require('../common.js'),
var common = require('../common'),
assert = require('assert'),
child = require('child_process'),
nodejs = '"' + process.execPath + '"';
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-domain-exit-dispose-again.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var domain = require('domain');
var disposalFailed = false;
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-domain-exit-dispose.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var domain = require('domain');
var disposalFailed = false;
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-domain-http-server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var domain = require('domain');
var http = require('http');
var assert = require('assert');
var common = require('../common.js');
var common = require('../common');

var objects = { foo: 'bar', baz: {}, num: 42, arr: [1,2,3] };
objects.baz.asdf = objects;
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-domain-timers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var domain = require('domain');
var assert = require('assert');
var common = require('../common.js');
var common = require('../common');

var timeout_err, timeout, immediate_err;

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-http-exit-delay.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var assert = require('assert');
var common = require('../common.js');
var common = require('../common');
var http = require('http');

var start;
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-http-set-timeout-server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var http = require('http');
var net = require('net');
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-https-set-timeout-server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var https = require('https');
var tls = require('tls');
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-repl-domain.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var assert = require('assert');
var common = require('../common.js');
var common = require('../common');

var util = require('util');
var repl = require('repl');
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-repl-timeout-throw.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var assert = require('assert');
var common = require('../common.js');
var common = require('../common');

var spawn = require('child_process').spawn;

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-signal-safety.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var Signal = process.binding('signal_wrap').Signal;

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream-push-order.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var Readable = require('stream').Readable;
var assert = require('assert');

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream2-base64-single-char-read-end.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var R = require('_stream_readable');
var W = require('_stream_writable');
var assert = require('assert');
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream2-compatibility.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var R = require('_stream_readable');
var assert = require('assert');

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream2-finish-pipe.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var stream = require('stream');
var Buffer = require('buffer').Buffer;

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream2-large-read-stall.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');

// If everything aligns so that you do a read(n) of exactly the
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream2-objects.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var Readable = require('_stream_readable');
var Writable = require('_stream_writable');
var assert = require('assert');
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream2-pipe-error-once-listener.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');

var util = require('util');
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream2-push.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var stream = require('stream');
var Readable = stream.Readable;
var Writable = stream.Writable;
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream2-readable-from-list.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var assert = require('assert');
var common = require('../common.js');
var common = require('../common');
var fromList = require('_stream_readable')._fromList;

// tiny node-tap lookalike.
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream2-readable-non-empty-end.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var assert = require('assert');
var common = require('../common.js');
var common = require('../common');
var Readable = require('_stream_readable');

var len = 0;
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream2-set-encoding.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var R = require('_stream_readable');
var util = require('util');
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream2-transform.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var assert = require('assert');
var common = require('../common.js');
var common = require('../common');
var PassThrough = require('_stream_passthrough');
var Transform = require('_stream_transform');

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream2-unpipe-drain.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var stream = require('stream');
var crypto = require('crypto');
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream2-unpipe-leak.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var stream = require('stream');

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream2-writable.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var W = require('_stream_writable');
var D = require('_stream_duplex');
var assert = require('assert');
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-zlib-close-after-write.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var zlib = require('zlib');

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-zlib-convenience-methods.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// test convenience methods with and without options supplied

var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var zlib = require('zlib');

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-zlib-dictionary-fail.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var zlib = require('zlib');

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-zlib-dictionary.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// test compression/decompression with dictionary

var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var zlib = require('zlib');
var path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-zlib-flush.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var zlib = require('zlib');
var path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-zlib-from-gzip.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// test unzipping a file that was created with a non-node gzip lib,
// piped in as fast as possible.

var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var zlib = require('zlib');
var path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-zlib-from-string.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// test compressing and uncompressing a string with zlib

var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var zlib = require('zlib');

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-zlib-invalid-input.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// test uncompressing invalid input

var common = require('../common.js'),
var common = require('../common'),
assert = require('assert'),
zlib = require('zlib');

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-zlib-params.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var zlib = require('zlib');
var path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-zlib-write-after-close.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var zlib = require('zlib');

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-zlib.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var zlib = require('zlib');
var path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion test/pummel/test-stream2-basic.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var R = require('_stream_readable');
var assert = require('assert');

Expand Down
2 changes: 1 addition & 1 deletion test/sequential/test-regress-GH-3542.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if (process.platform !== 'win32') {
return process.exit(0);
}

var common = require('../common.js'),
var common = require('../common'),
assert = require('assert'),
fs = require('fs'),
path = require('path'),
Expand Down
2 changes: 1 addition & 1 deletion test/sequential/test-regress-GH-3739.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js'),
var common = require('../common'),
assert = require('assert'),
fs = require('fs'),
path = require('path');
Expand Down
2 changes: 1 addition & 1 deletion test/sequential/test-stream2-fs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var R = require('_stream_readable');
var assert = require('assert');

Expand Down
2 changes: 1 addition & 1 deletion test/sequential/test-stream2-httpclient-response-end.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var http = require('http');
var msg = 'Hello';
Expand Down
2 changes: 1 addition & 1 deletion test/sequential/test-stream2-stderr-sync.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Make sure that sync writes to stderr get processed before exiting.

var common = require('../common.js');
var common = require('../common');
var assert = require('assert');
var util = require('util');

Expand Down