Make interop client fail if the test never finishes

This commit is contained in:
murgatroid99 2018-05-14 10:59:19 -07:00
parent 60b59c455c
commit 796a1df0e5
3 changed files with 12 additions and 4 deletions

View File

@ -60,7 +60,11 @@
"packages/grpc-native-core/src/*.js",
"packages/grpc-protobufjs/build/src/*"
],
"cache": true
"cache": true,
"all": true,
"require": [
"ts-node/register"
]
},
"scripts": {
"test": "nyc gulp test",

View File

@ -68,7 +68,7 @@ describe('Interop tests', function() {
throw new Error(`Server exited with signal ${signal}`);
}
}
})
});
});
after(function() {
serverProcess.send({});

View File

@ -616,8 +616,12 @@ if (require.main === module) {
};
runTest(argv.server_host + ':' + argv.server_port, argv.server_host_override,
argv.test_case, argv.use_tls === 'true', argv.use_test_ca === 'true',
function () {
function (err) {
if (err) {
throw err;
} else {
console.log('OK:', argv.test_case);
}
}, extra_args);
}