GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: remove duplicate `common` imports · nodejs/node@9c7b282

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test
    • internet
      • test-dns-lookup.js
    • parallel
      • test-dgram-listen-after-bind.js
      • test-fs-read-empty-buffer.js
      • test-is-internal-thread.mjs
      • test-stream-readable-to-web-byob.js
      • test-stream-readable-to-web-termination-byob.js
      • test-worker-message-mark-as-uncloneable.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/internet/test-dns-lookup.js‎

Copy file name to clipboardExpand all lines: test/internet/test-dns-lookup.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22

3-
require('../common');
43
const common = require('../common');
54
const dns = require('dns');
65
const dnsPromises = dns.promises;
Collapse file

‎test/parallel/test-dgram-listen-after-bind.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-dgram-listen-after-bind.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
'use strict';
23-
require('../common');
2423
const common = require('../common');
2524
const assert = require('assert');
2625
const dgram = require('dgram');
Collapse file

‎test/parallel/test-fs-read-empty-buffer.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-fs-read-empty-buffer.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
'use strict';
2-
require('../common');
32
const common = require('../common');
43
const fixtures = require('../common/fixtures');
54
const assert = require('assert');
Collapse file

‎test/parallel/test-is-internal-thread.mjs‎

Copy file name to clipboardExpand all lines: test/parallel/test-is-internal-thread.mjs
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import { spawnPromisified } from '../common/index.mjs';
1+
import { mustCall, spawnPromisified } from '../common/index.mjs';
22
import * as fixtures from '../common/fixtures.mjs';
33
import assert from 'node:assert';
44
import { execPath } from 'node:process';
55
import { describe, it } from 'node:test';
66
import { isInternalThread, Worker } from 'node:worker_threads';
7-
import * as common from '../common/index.mjs';
87

98
describe('worker_threads.isInternalThread', { concurrency: !process.env.TEST_PARALLEL }, () => {
109
it('should be true inside the loader thread', async () => {
@@ -29,7 +28,7 @@ describe('worker_threads.isInternalThread', { concurrency: !process.env.TEST_PAR
2928
it('should be false inside a regular worker thread', async () => {
3029
const worker = new Worker(fixtures.path('worker-is-internal-thread.js'));
3130

32-
worker.on('message', common.mustCall((message) => {
31+
worker.on('message', mustCall((message) => {
3332
assert.strictEqual(message, 'isInternalThread: false');
3433
}));
3534
});
Collapse file

‎test/parallel/test-stream-readable-to-web-byob.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-stream-readable-to-web-byob.js
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
'use strict';
2-
require('../common');
2+
const common = require('../common');
33
const { Readable } = require('stream');
44
const assert = require('assert');
5-
const common = require('../common');
65

76
let count = 0;
87

Collapse file

‎test/parallel/test-stream-readable-to-web-termination-byob.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-stream-readable-to-web-termination-byob.js
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
'use strict';
2-
require('../common');
2+
const common = require('../common');
33
const { Readable } = require('stream');
44
const assert = require('assert');
5-
const common = require('../common');
65
{
76
const r = Readable.from([]);
87
// Cancelling reader while closing should not cause uncaught exceptions
Collapse file

‎test/parallel/test-worker-message-mark-as-uncloneable.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-worker-message-mark-as-uncloneable.js
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
'use strict';
22

3-
require('../common');
3+
const { mustCall } = require('../common');
44
const assert = require('assert');
55
const { markAsUncloneable } = require('node:worker_threads');
6-
const { mustCall } = require('../common');
76

87
const expectedErrorName = 'DataCloneError';
98

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.