Skip to content

Commit

Permalink
Increase mocha timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjams committed Oct 29, 2024
1 parent 852f818 commit 86d9cd9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .mocharc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"extension": ["ts"],
"spec": "itest/**/*.ts",
"require": ["ts-node/register"],
"timeout": 300000
}
"timeout": 600000
}
2 changes: 1 addition & 1 deletion Jenkinsfile-itest
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ node('docker') {
docker.image('node:22-alpine')
.inside('-v /var/run/docker.sock:/var/run/docker.sock --network=host --user=root') {
stage('Init') {
sh 'apk add docker docker-compose' // TODO: Use already built image for a faster job
sh 'apk add docker docker-compose' // TODO: Use already built image for a faster job execution
sh 'npm ci'
}
stage('Integration tests') {
Expand Down
4 changes: 0 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
FROM node:22

WORKDIR /iexec-poco-subgraph

COPY package*.json .
COPY schema.graphql .
COPY subgraph.template.yaml .
COPY networks.json .
COPY src src

RUN npm ci

ENTRYPOINT [ "npm", "run", "deploy:all" ]
2 changes: 1 addition & 1 deletion docker/test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
# - 8546
ports:
- 8545:8545
# - 8546:8546 # port (not required for integrations tests) fails to open on CI
# - 8546:8546 # port (not required for integration tests) fails to open on CI

ipfs:
restart: unless-stopped
Expand Down
2 changes: 1 addition & 1 deletion itest/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const client = new ApolloClient({
describe('Integration tests', () => {
/**
* Services are started only once before running all tests to get a decent test
* time in case of multiple tests. Please switch to `beforeEach` if necessary.
* suite duration with multiple tests. Please switch to `beforeEach` if necessary.
* Shutdown of services is handled by `testcontainers` framework.
*/
before(async () => {
Expand Down
2 changes: 1 addition & 1 deletion networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
"startBlock": 4543300
}
}
}
}

0 comments on commit 86d9cd9

Please sign in to comment.