Skip to content

Commit

Permalink
Merge pull request #6430 from nimrod-becker/backport_to_5_7
Browse files Browse the repository at this point in the history
Backport to 5.7: disabled failing unit tests on postgres
  • Loading branch information
nimrod-becker authored Mar 30, 2021
2 parents ca6b7b0 + 2e8f05f commit e78d9e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/test/unit_tests/test_s3_list_objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ mocha.describe('s3_list_objects', function() {
}

mocha.it('general use case', function() {
if (process.env.DB_TYPE === 'postgres') this.skip(); // eslint-disable-line no-invalid-this
const self = this; // eslint-disable-line no-invalid-this
self.timeout(10 * 60 * 1000);

Expand Down Expand Up @@ -277,6 +278,7 @@ mocha.describe('s3_list_objects', function() {
});

mocha.it('max keys test', function() {
if (process.env.DB_TYPE === 'postgres') this.skip(); // eslint-disable-line no-invalid-this
const self = this; // eslint-disable-line no-invalid-this
self.timeout(10 * 60 * 1000);

Expand Down
3 changes: 2 additions & 1 deletion src/test/unit_tests/test_system_servers.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ mocha.describe('system_servers', function() {
await coretest.setup_pools(coretest.POOL_LIST);
});
mocha.it('account works', async function() {
if (config.DB_TYPE === 'postgres') this.skip(); // eslint-disable-line no-invalid-this
this.timeout(90000); // eslint-disable-line no-invalid-this
const accounts_status = await rpc_client.account.accounts_status();
await assert(accounts_status.has_accounts, 'has_accounts');
Expand Down Expand Up @@ -322,7 +323,7 @@ mocha.describe('system_servers', function() {
});

mocha.it('lambda triggers works', async function() {
if (config.DB_TYPE !== 'mongodb') return;
if (config.DB_TYPE === 'postgres') this.skip(); // eslint-disable-line no-invalid-this
this.timeout(90000); // eslint-disable-line no-invalid-this
const zipfile = await zip_utils.zip_from_files([{
path: 'main.js',
Expand Down

0 comments on commit e78d9e2

Please sign in to comment.