mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Merge github.com:grpc/grpc into sometimes-its-good-just-to-check-in-with-each-other
This commit is contained in:
parent
169fa73f66
commit
ddfc22f305
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user