11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst common = require('../common'); 31cb0ef41Sopenharmony_ciconst assert = require('assert'); 41cb0ef41Sopenharmony_ciconst { createServer } = require('http'); 51cb0ef41Sopenharmony_ciconst { kConnectionsCheckingInterval } = require('_http_server'); 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ciconst server = createServer(function(req, res) {}); 81cb0ef41Sopenharmony_ciserver.listen(0, common.mustCall(function() { 91cb0ef41Sopenharmony_ci assert.strictEqual(server[kConnectionsCheckingInterval]._destroyed, false); 101cb0ef41Sopenharmony_ci server.close(common.mustCall(() => { 111cb0ef41Sopenharmony_ci assert(server[kConnectionsCheckingInterval]._destroyed); 121cb0ef41Sopenharmony_ci })); 131cb0ef41Sopenharmony_ci})); 14