1'use strict'; 2const common = require('../common'); 3const net = require('net'); 4const server = net.createServer(); 5 6// Unref before listening 7server.unref(); 8server.listen(); 9 10// If the timeout fires, that means the server held the event loop open 11// and the unref() was not persistent. Close the server and fail the test. 12setTimeout(common.mustNotCall(), 1000).unref(); 13