11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst common = require('../common'); 31cb0ef41Sopenharmony_ciconst assert = require('assert'); 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ciconst { Resolver } = require('dns'); 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ciconst resolver = new Resolver(); 81cb0ef41Sopenharmony_ciassert(resolver.getServers().length > 0); 91cb0ef41Sopenharmony_ci// return undefined 101cb0ef41Sopenharmony_ciresolver._handle.getServers = common.mustCall(); 111cb0ef41Sopenharmony_ciassert.strictEqual(resolver.getServers().length, 0); 12