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
|
||||
* makes it end the call instead of continuing to try. A DNS resolution
|
||||
* failure makes that transition very fast. */
|
||||
this.timeout(15000);
|
||||
const disconnectedClient = new Client('foo.test.google.com:50051', grpc.credentials.createInsecure());
|
||||
const metadata = new grpc.Metadata({waitForReady: false});
|
||||
const deadline = new Date();
|
||||
deadline.setSeconds(deadline.getSeconds() + 1);
|
||||
deadline.setSeconds(deadline.getSeconds() + 10);
|
||||
disconnectedClient.unary({}, metadata, {deadline: deadline}, (error, value) =>{
|
||||
assert(error);
|
||||
assert.strictEqual(error.code, grpc.status.UNAVAILABLE);
|
||||
|
|
Loading…
Reference in New Issue