Merge github.com:grpc/grpc into sometimes-its-good-just-to-check-in-with-each-other

This commit is contained in:
Craig Tiller 2015-07-23 11:28:16 -07:00
parent 169fa73f66
commit ddfc22f305

View File

@ -260,9 +260,8 @@ describe('Echo metadata', function() {
});
it('shows the correct user-agent string', function(done) {
var version = require('../package.json').version;
var call = client.unary({}, function(err, data) {
assert.ifError(err);
}, {key: ['value']});
var call = client.unary({}, function(err, data) { assert.ifError(err); },
{key: ['value']});
call.on('metadata', function(metadata) {
assert(_.startsWith(metadata['user-agent'], 'grpc-node/' + version));
done();