Skip to content

Commit 86d9cd9

Browse files
Increase mocha timeout
1 parent 852f818 commit 86d9cd9

File tree

6 files changed

+6
-10
lines changed

6 files changed

+6
-10
lines changed

.mocharc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"extension": ["ts"],
33
"spec": "itest/**/*.ts",
44
"require": ["ts-node/register"],
5-
"timeout": 300000
6-
}
5+
"timeout": 600000
6+
}

Jenkinsfile-itest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ node('docker') {
1818
docker.image('node:22-alpine')
1919
.inside('-v /var/run/docker.sock:/var/run/docker.sock --network=host --user=root') {
2020
stage('Init') {
21-
sh 'apk add docker docker-compose' // TODO: Use already built image for a faster job
21+
sh 'apk add docker docker-compose' // TODO: Use already built image for a faster job execution
2222
sh 'npm ci'
2323
}
2424
stage('Integration tests') {

docker/Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
FROM node:22
2-
32
WORKDIR /iexec-poco-subgraph
4-
53
COPY package*.json .
64
COPY schema.graphql .
75
COPY subgraph.template.yaml .
86
COPY networks.json .
97
COPY src src
10-
118
RUN npm ci
12-
139
ENTRYPOINT [ "npm", "run", "deploy:all" ]

docker/test/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
# - 8546
88
ports:
99
- 8545:8545
10-
# - 8546:8546 # port (not required for integrations tests) fails to open on CI
10+
# - 8546:8546 # port (not required for integration tests) fails to open on CI
1111

1212
ipfs:
1313
restart: unless-stopped

itest/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const client = new ApolloClient({
1313
describe('Integration tests', () => {
1414
/**
1515
* Services are started only once before running all tests to get a decent test
16-
* time in case of multiple tests. Please switch to `beforeEach` if necessary.
16+
* suite duration with multiple tests. Please switch to `beforeEach` if necessary.
1717
* Shutdown of services is handled by `testcontainers` framework.
1818
*/
1919
before(async () => {

networks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@
4343
"startBlock": 4543300
4444
}
4545
}
46-
}
46+
}

0 commit comments

Comments
 (0)