mirror of https://github.com/nodejs/node.git
15 lines
442 B
JavaScript
15 lines
442 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
const { createServer } = require('http');
|
|
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);
|
|
}));
|
|
}));
|