Skip to content

Commit

Permalink
Merge branch 'main' into feat-ai-tts
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Mar 25, 2024
2 parents 4e7f292 + 9e2eb83 commit 37b582e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@ethersproject/wallet": "^5.7.0",
"@snapshot-labs/snapshot-metrics": "^1.4.1",
"@snapshot-labs/snapshot-sentry": "^1.5.5",
"@snapshot-labs/snapshot.js": "^0.11.14",
"@snapshot-labs/snapshot.js": "^0.11.15",
"bluebird": "^3.7.2",
"body-parser": "^1.20.2",
"compression": "^1.7.4",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async function run() {
} catch (e) {
capture(e);
} finally {
await sleep(15e3);
await sleep(parseInt(process.env.QUEUE_INTERVAL || '15e3'));
await run();
}
}
Expand Down
1 change: 1 addition & 0 deletions test/.env.test
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ NFT_CLAIMER_DEPLOY_INITIALIZE_SELECTOR=0x977b0efb
NFT_CLAIMER_SUBGRAPH_URL='https://api.studio.thegraph.com/query/48277/nft-subgraph-goerli/version/latest'
STORAGE_ENGINE=file
OPENAI_API_KEY=''
QUEUE_INTERVAL=2500
# your own test AWS for credentials if you wish to test with AWS
# AWS_ACCESS_KEY_ID=
# AWS_REGION=
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/votesReport.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import request from 'supertest';
import VotesReport from '../../src/lib/votesReport';
import { storageEngine } from '../../src/helpers/utils';
import { storageEngine, sleep } from '../../src/helpers/utils';
import { rmSync } from 'fs';

const HOST = `http://localhost:${process.env.PORT || 3003}`;
Expand Down Expand Up @@ -41,6 +41,7 @@ describe('GET /api/votes/:id', () => {

const votesReport = new VotesReport(id, storage);
expect(typeof (await votesReport.getCache())).not.toBe(false);
await sleep(parseInt(process.env.QUEUE_INTERVAL || '15e3'));
});
});

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2134,10 +2134,10 @@
dependencies:
"@sentry/node" "^7.81.1"

"@snapshot-labs/snapshot.js@^0.11.14":
version "0.11.14"
resolved "https://registry.yarnpkg.com/@snapshot-labs/snapshot.js/-/snapshot.js-0.11.14.tgz#f0ab907d5740bf1d72c1a582aa798fae1ba93cdb"
integrity sha512-FhB4ZQXq81PuTYa6cXJHf4S72KKQZaYtl7vWcAEDQms8uvtCZ5FIokRyWZcKgggckFlrsco0zRyyKxSmmDxrAg==
"@snapshot-labs/snapshot.js@^0.11.15":
version "0.11.15"
resolved "https://registry.yarnpkg.com/@snapshot-labs/snapshot.js/-/snapshot.js-0.11.15.tgz#8c9dfb8a718d8ad003dbf2df3a184c10cbce8ac1"
integrity sha512-UM7kIJ72r1+qnPQ1JEqJW1UpcvDhAW8np332BwizO7cvHbqJzJqvQl0YjK2EldD8BffZ+kxp8ltXKoA9dPr6CQ==
dependencies:
"@ensdomains/eth-ens-namehash" "^2.0.15"
"@ethersproject/abi" "^5.6.4"
Expand Down

0 comments on commit 37b582e

Please sign in to comment.