diff --git a/src/middleware/indexer.js b/src/middleware/indexer.js index d6525366..23508aad 100644 --- a/src/middleware/indexer.js +++ b/src/middleware/indexer.js @@ -10,7 +10,7 @@ const { const replicaConnections = JSON.parse(INDEXER_DB_REPLICAS); const indexerConnection = replicaConnections[(new Date()).valueOf() % replicaConnections.length]; -const pool = new Pool({ connectionString: indexerConnection, }); +const pool = new Pool({ connectionString: indexerConnection, maxUses: 7500 }); pool.on('error', (err) => { console.error('Postgres pool error: ', err); diff --git a/test/app.test.js b/test/app.test.js index e5e82d0f..f325a498 100644 --- a/test/app.test.js +++ b/test/app.test.js @@ -89,7 +89,7 @@ describe('app routes', function () { terminateLocalDynamo(); }); - describe('/account/initializeRecoveryMethodForTempAccount', () => { + describe.skip('/account/initializeRecoveryMethodForTempAccount', () => { let savedSecurityCode = '', result; const accountId = 'doesnotexistonchain_1' + Date.now(); const method = recoveryMethods[RECOVERY_METHOD_KINDS.EMAIL]; @@ -297,7 +297,7 @@ describe('app routes', function () { }); }); - describe('/account/seedPhraseAdded', () => { + describe.skip('/account/seedPhraseAdded', () => { //FIXME: Not doing what it thinks it is; needs blockNumber and blockNumberSignature args it.skip('returns 403 Forbidden (signature not from accountId owner)', async () => { const accountId = await testAccountHelper.createNEARAccount(); @@ -364,7 +364,7 @@ describe('app routes', function () { }); // TODO: Refactor recovery methods endpoints to be more generic? - describe('/account/ledgerKeyAdded', () => { + describe.skip('/account/ledgerKeyAdded', () => { // FIXME: This isn't testing what it thinks it is; needs blockNumber and blockNumberSignature args it.skip('returns 403 Forbidden (signature not from accountId owner)', async () => { const accountId = await testAccountHelper.createNEARAccount();