diff options
Diffstat (limited to 'src/node/test/surface_test.js')
-rw-r--r-- | src/node/test/surface_test.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/node/test/surface_test.js b/src/node/test/surface_test.js index 9005cbd505..98f9b15bfc 100644 --- a/src/node/test/surface_test.js +++ b/src/node/test/surface_test.js @@ -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(); |