mirror of https://github.com/grpc/grpc-node.git
add tests for test-resolver with alternative resolver
This commit is contained in:
parent
717725caf1
commit
f0afe6946f
|
@ -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 };
|
||||
|
|
|
@ -460,7 +460,7 @@ describe('Name Resolver', () => {
|
|||
}
|
||||
},
|
||||
},
|
||||
{}
|
||||
{ 'grpc.dns_min_time_between_resolutions_ms': 2000 }
|
||||
);
|
||||
resolver.updateResolution();
|
||||
setTimeout(() => {
|
||||
|
|
Loading…
Reference in New Issue