mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 19:38:58 +00:00
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Co-authored-by: 190n <ben@bun.sh> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
20 lines
502 B
JavaScript
20 lines
502 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
|
|
if (!common.hasCrypto)
|
|
common.skip('missing crypto');
|
|
|
|
const assert = require('assert');
|
|
const { createServer } = require('https');
|
|
const { kConnectionsCheckingInterval } = require('_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);
|
|
}));
|
|
}));
|