xref: /third_party/node/test/async-hooks/test-net-get-connections.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/async-hooks/
11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ci
31cb0ef41Sopenharmony_ciconst common = require('../common');
41cb0ef41Sopenharmony_ciconst net = require('net');
51cb0ef41Sopenharmony_ciconst server = net.createServer();
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ci// This test was based on an error raised by Haraka.
81cb0ef41Sopenharmony_ci// It caused server.getConnections to raise an exception.
91cb0ef41Sopenharmony_ci// Ref: https://github.com/haraka/Haraka/pull/1951
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ciserver.getConnections(common.mustCall());
12

Indexes created Thu Nov 07 10:32:03 CST 2024