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
|
/* If the subchannel disconnects between calling pick and getting
|
||||||
* the filter stack metadata, the call will end with an error. */
|
* the filter stack metadata, the call will end with an error. */
|
||||||
callStream.filterStack
|
callStream.filterStack
|
||||||
.sendMetadata(Promise.resolve(new Metadata()))
|
.sendMetadata(Promise.resolve(callMetadata))
|
||||||
.then(
|
.then(
|
||||||
finalMetadata => {
|
finalMetadata => {
|
||||||
if (
|
if (
|
||||||
|
|
|
@ -83,9 +83,9 @@ describe('Server deadlines', () => {
|
||||||
metadata,
|
metadata,
|
||||||
{},
|
{},
|
||||||
(error: any, response: any) => {
|
(error: any, response: any) => {
|
||||||
|
assert(error);
|
||||||
assert.strictEqual(error.code, grpc.status.DEADLINE_EXCEEDED);
|
assert.strictEqual(error.code, grpc.status.DEADLINE_EXCEEDED);
|
||||||
assert.strictEqual(error.details, 'Deadline exceeded');
|
assert.strictEqual(error.details, 'Deadline exceeded');
|
||||||
assert.strictEqual(error.message, 'Deadline exceeded');
|
|
||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -108,9 +108,9 @@ describe('Server deadlines', () => {
|
||||||
metadata,
|
metadata,
|
||||||
{},
|
{},
|
||||||
(error: any, response: any) => {
|
(error: any, response: any) => {
|
||||||
|
assert(error);
|
||||||
assert.strictEqual(error.code, grpc.status.OUT_OF_RANGE);
|
assert.strictEqual(error.code, grpc.status.OUT_OF_RANGE);
|
||||||
assert.strictEqual(error.details, 'Invalid deadline');
|
assert.strictEqual(error.details, 'Invalid deadline');
|
||||||
assert.strictEqual(error.message, 'Invalid deadline');
|
|
||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue