mirror of https://github.com/grpc/grpc-node.git
Increase test timeout
This commit is contained in:
parent
fbace6417c
commit
d3d50ea57b
|
@ -939,10 +939,11 @@ describe('Other conditions', function() {
|
||||||
* and go to TRANSIENT_FAILURE to confirm that the waitForReady option
|
* and go to TRANSIENT_FAILURE to confirm that the waitForReady option
|
||||||
* makes it end the call instead of continuing to try. A DNS resolution
|
* makes it end the call instead of continuing to try. A DNS resolution
|
||||||
* failure makes that transition very fast. */
|
* failure makes that transition very fast. */
|
||||||
|
this.timeout(15000);
|
||||||
const disconnectedClient = new Client('foo.test.google.com:50051', grpc.credentials.createInsecure());
|
const disconnectedClient = new Client('foo.test.google.com:50051', grpc.credentials.createInsecure());
|
||||||
const metadata = new grpc.Metadata({waitForReady: false});
|
const metadata = new grpc.Metadata({waitForReady: false});
|
||||||
const deadline = new Date();
|
const deadline = new Date();
|
||||||
deadline.setSeconds(deadline.getSeconds() + 1);
|
deadline.setSeconds(deadline.getSeconds() + 10);
|
||||||
disconnectedClient.unary({}, metadata, {deadline: deadline}, (error, value) =>{
|
disconnectedClient.unary({}, metadata, {deadline: deadline}, (error, value) =>{
|
||||||
assert(error);
|
assert(error);
|
||||||
assert.strictEqual(error.code, grpc.status.UNAVAILABLE);
|
assert.strictEqual(error.code, grpc.status.UNAVAILABLE);
|
||||||
|
|
Loading…
Reference in New Issue