mirror of https://github.com/grpc/grpc-node.git
Also use original call metadata
This commit is contained in:
parent
c7d086bfb4
commit
4e7f4dff17
|
@ -203,7 +203,7 @@ export class ChannelImplementation implements Channel {
|
|||
/* If the subchannel disconnects between calling pick and getting
|
||||
* the filter stack metadata, the call will end with an error. */
|
||||
callStream.filterStack
|
||||
.sendMetadata(Promise.resolve(new Metadata()))
|
||||
.sendMetadata(Promise.resolve(callMetadata))
|
||||
.then(
|
||||
finalMetadata => {
|
||||
if (
|
||||
|
|
|
@ -83,9 +83,9 @@ describe('Server deadlines', () => {
|
|||
metadata,
|
||||
{},
|
||||
(error: any, response: any) => {
|
||||
assert(error);
|
||||
assert.strictEqual(error.code, grpc.status.DEADLINE_EXCEEDED);
|
||||
assert.strictEqual(error.details, 'Deadline exceeded');
|
||||
assert.strictEqual(error.message, 'Deadline exceeded');
|
||||
done();
|
||||
}
|
||||
);
|
||||
|
@ -108,9 +108,9 @@ describe('Server deadlines', () => {
|
|||
metadata,
|
||||
{},
|
||||
(error: any, response: any) => {
|
||||
assert(error);
|
||||
assert.strictEqual(error.code, grpc.status.OUT_OF_RANGE);
|
||||
assert.strictEqual(error.details, 'Invalid deadline');
|
||||
assert.strictEqual(error.message, 'Invalid deadline');
|
||||
done();
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue