add tests for test-resolver with alternative resolver

This commit is contained in:
gkampitakis 2024-07-09 17:43:51 +01:00
parent 717725caf1
commit f0afe6946f
No known key found for this signature in database
2 changed files with 17 additions and 2 deletions

View File

@ -81,6 +81,21 @@ const runTests = checkTask(() => {
);
});
const test = gulp.series(install, copyTestFixtures, runTests);
const testWithAlternativeResolver = checkTask(() => {
process.env.GRPC_NODE_USE_ALTERNATIVE_RESOLVER = 'true';
return gulp.src(`${outDir}/test/**/test-resolver.js`).pipe(
mocha({
reporter: 'mocha-jenkins-reporter',
require: ['ts-node/register'],
})
);
});
const test = gulp.series(
install,
copyTestFixtures,
runTests,
testWithAlternativeResolver
);
export { install, lint, clean, cleanAll, compile, test };

View File

@ -460,7 +460,7 @@ describe('Name Resolver', () => {
}
},
},
{}
{ 'grpc.dns_min_time_between_resolutions_ms': 2000 }
);
resolver.updateResolution();
setTimeout(() => {