Merge pull request #1803 from jtattermusch/emulator_increase_timeout

Increase timeout for tests that timeout under emulator
This commit is contained in:
Michael Lumish 2021-06-02 08:45:34 -07:00 committed by GitHub
commit 1c3cd458b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -197,6 +197,8 @@ describe(`${anyGrpc.clientName} client -> ${anyGrpc.serverName} server`, functio
});
});
describe('max message size', function() {
// with the default timeout the test times out under aarch64 emulator
this.timeout(6000);
// A size that is larger than the default limit
const largeMessageSize = 8 * 1024 * 1024;
const largeMessage = Buffer.alloc(largeMessageSize);
@ -238,6 +240,8 @@ describe(`${anyGrpc.clientName} client -> ${anyGrpc.serverName} server`, functio
});
});
describe('with a client with no message size limits', function() {
// with the default timeout the test times out under aarch64 emulator
this.timeout(6000);
let unrestrictedClient;
before(function() {
const ca_path = path.join(__dirname, '../data/ca.pem');
@ -283,6 +287,8 @@ describe(`${anyGrpc.clientName} client -> ${anyGrpc.serverName} server`, functio
});
});
describe('with a server with message size limits and a client without limits', function() {
// with the default timeout the test times out under aarch64 emulator
this.timeout(6000);
let restrictedServer;
let restrictedServerClient;
let restrictedServerClient2;

View File

@ -48,7 +48,8 @@ var childExecArgv = [];
describe(`${anyGrpc.clientName} client -> ${anyGrpc.serverName} server`, function() {
describe('Interop tests', function() {
this.timeout(4000);
// with the default timeout the test times out under aarch64 emulator
this.timeout(10000);
before(function(done) {
for (let arg of process.argv) {
if (arg.startsWith('--require=')) {