mirror of
https://github.com/nodejs/node.git
synced 2026-10-29 02:35:20 +08:00
Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com> PR-URL: https://github.com/nodejs/node/pull/58535 Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day> Reviewed-By: Tim Perry <pimterry@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Aviv Keller <me@aviv.sh>
21 lines
553 B
JavaScript
21 lines
553 B
JavaScript
// Flags: --expose-internals --no-warnings
|
|
'use strict';
|
|
|
|
const common = require('../common');
|
|
|
|
if (!common.hasCrypto)
|
|
common.skip('missing crypto');
|
|
|
|
const assert = require('assert');
|
|
const { createServer } = require('https');
|
|
const { kConnectionsCheckingInterval } = require('internal/http/server');
|
|
|
|
const server = createServer();
|
|
|
|
server.listen(0, common.mustCall(() => {
|
|
server.on('close', common.mustCall());
|
|
server[Symbol.asyncDispose]().then(common.mustCall(() => {
|
|
assert(server[kConnectionsCheckingInterval]._destroyed);
|
|
}));
|
|
}));
|