Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gc committed Feb 23, 2024
1 parent 1abc88c commit c999e1e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TZ="UTC"
ROBOCHIMP_DATABASE_URL=postgresql://postgres:postgres@localhost:5436/robochimp_integration_test&connection_limit=100
DATABASE_URL=postgresql://postgres:postgres@localhost:5435/osb_integration_test?pool_timeout=120&connection_limit=100
ROBOCHIMP_DATABASE_URL=postgresql://postgres:postgres@localhost:5436/robochimp_integration_test?connection_limit=1000
DATABASE_URL=postgresql://postgres:postgres@localhost:5435/osb_integration_test?pool_timeout=120&connection_limit=1000
PATREON_CAMPAIGN_ID=1234
PATREON_TOKEN=asdfasdfasdf
PATREON_WEBHOOK_SECRET=asdfasdfasdf
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: "3.9"
services:
osb:
image: postgres:13-alpine
command: -c 'max_connections=100'
command: -c 'max_connections=1000'
restart: always
container_name: osb_database
ports:
Expand All @@ -18,7 +18,7 @@ services:

robochimp:
image: postgres:13-alpine
command: -c 'max_connections=100'
command: -c 'max_connections=1000'
restart: always
container_name: robochimp_database
ports:
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/grandExchange.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('Grand Exchange', async () => {

const currentOwnedBank = await GrandExchange.fetchOwnedBank();
expect(currentOwnedBank.toString()).toEqual(new Bank().toString());
let amountOfUsers = randInt(300, 400);
let amountOfUsers = randInt(200, 300);

const totalExpectedBank = sampleBank.clone().multiply(amountOfUsers);
let users: TestUser[] = [];
Expand Down Expand Up @@ -141,7 +141,7 @@ describe('Grand Exchange', async () => {
assert(GrandExchange.queue.size === 0, 'Queue should be empty');
},
{
repeats: 2,
repeats: 1,
timeout: Time.Minute * 5
}
);
Expand Down
6 changes: 4 additions & 2 deletions vitest.integration.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export default defineConfig({
},
testTimeout: 30_000,
bail: 1,
threads: false,
maxConcurrency: 1
threads: true,
maxConcurrency: 1,
minThreads: 1,
maxThreads: 1
}
});

0 comments on commit c999e1e

Please sign in to comment.