aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/test/call_test.js
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2015-07-28 09:20:08 -0700
committerGravatar yang-g <yangg@google.com>2015-07-28 09:20:08 -0700
commite8afb2338f4d8ebb5cdab093aac342a4378604ab (patch)
treefaafdf066ca220466cf98500a1656292fb24188b /src/node/test/call_test.js
parent60b653bf35fad97f9b0187922ccea9cfb04f635d (diff)
parent8e06c2e62e0be2606598dd1f2a6582b585364520 (diff)
Merge remote-tracking branch 'upstream/master' into jitter
Diffstat (limited to 'src/node/test/call_test.js')
-rw-r--r--src/node/test/call_test.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/node/test/call_test.js b/src/node/test/call_test.js
index 98158ffff3..942c31ac68 100644
--- a/src/node/test/call_test.js
+++ b/src/node/test/call_test.js
@@ -132,7 +132,7 @@ describe('call', function() {
'key2': ['value2']};
call.startBatch(batch, function(err, resp) {
assert.ifError(err);
- assert.deepEqual(resp, {'send metadata': true});
+ assert.deepEqual(resp, {'send_metadata': true});
done();
});
});
@@ -147,7 +147,7 @@ describe('call', function() {
};
call.startBatch(batch, function(err, resp) {
assert.ifError(err);
- assert.deepEqual(resp, {'send metadata': true});
+ assert.deepEqual(resp, {'send_metadata': true});
done();
});
});
@@ -184,4 +184,10 @@ describe('call', function() {
});
});
});
+ describe('getPeer', function() {
+ it('should return a string', function() {
+ var call = new grpc.Call(channel, 'method', getDeadline(1));
+ assert.strictEqual(typeof call.getPeer(), 'string');
+ });
+ });
});