Skip to content

Commit 645005f

Browse files
Merge pull request #11 from iExecBlockchainComputing/hotfix/tests-main
sdk: Fix failing tests (Docker healthcheck + DApp address)
2 parents f638108 + 52a32a8 commit 645005f

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

tests/docker-compose.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ services:
88
- 8545
99
ports:
1010
- 8545:8545
11-
# healthcheck:
12-
# test: nc -z 0.0.0.0 8545
13-
# interval: 30s
14-
# timeout: 5s
15-
# retries: 3
16-
# start_period: 90s
11+
healthcheck:
12+
test: (echo >/dev/tcp/$(hostname)/8545) &>/dev/null
13+
interval: 30s
14+
timeout: 5s
15+
retries: 3
16+
start_period: 90s
1717

1818
sms:
1919
image: iexechub/iexec-sms:7.1.0
@@ -35,9 +35,9 @@ services:
3535
IEXEC_SMS_IMAGE_LAS_IMAGE: foo
3636
ports:
3737
- 13300:13300
38-
# depends_on:
39-
# bellecour-fork:
40-
# condition: service_healthy
38+
depends_on:
39+
bellecour-fork:
40+
condition: service_healthy
4141

4242
result-proxy:
4343
image: iexechub/iexec-result-proxy:7.1.0
@@ -52,8 +52,8 @@ services:
5252
ports:
5353
- 13200:13200
5454
depends_on:
55-
# bellecour-fork:
56-
# condition: service_healthy
55+
bellecour-fork:
56+
condition: service_healthy
5757
result-proxy-mongo:
5858
condition: service_started
5959
ipfs:
@@ -111,8 +111,8 @@ services:
111111
MONGO_HOST: market-mongo
112112
REDIS_HOST: market-redis
113113
depends_on:
114-
# bellecour-fork:
115-
# condition: service_healthy
114+
bellecour-fork:
115+
condition: service_healthy
116116
market-redis:
117117
condition: service_started
118118
market-mongo:
@@ -137,8 +137,8 @@ services:
137137
RATE_LIMIT_PERIOD: 60000
138138
MAX_OPEN_ORDERS_PER_WALLET: 1000
139139
depends_on:
140-
# bellecour-fork:
141-
# condition: service_healthy
140+
bellecour-fork:
141+
condition: service_healthy
142142
market-redis:
143143
condition: service_started
144144
market-mongo:
@@ -189,8 +189,8 @@ services:
189189
ethereum: bellecour:http://bellecour-fork:8545
190190
GRAPH_ETHEREUM_GENESIS_BLOCK_NUMBER: $BELLECOUR_FORK_BLOCK
191191
depends_on:
192-
# bellecour-fork:
193-
# condition: service_healthy
192+
bellecour-fork:
193+
condition: service_healthy
194194
graphnode-postgres:
195195
condition: service_healthy
196196
ipfs:
@@ -227,8 +227,8 @@ services:
227227
VOUCHER_HUB_ADDRESS: '0x3137B6DF4f36D338b82260eDBB2E7bab034AFEda'
228228
VOUCHER_HUB_START_BLOCK: $BELLECOUR_FORK_BLOCK
229229
depends_on:
230-
# bellecour-fork:
231-
# condition: service_healthy
230+
bellecour-fork:
231+
condition: service_healthy
232232
graphnode:
233233
condition: service_healthy
234234
ipfs:
@@ -239,8 +239,8 @@ services:
239239
command:
240240
- echo "all services ready"
241241
depends_on:
242-
# bellecour-fork:
243-
# condition: service_healthy
242+
bellecour-fork:
243+
condition: service_healthy
244244
graphnode:
245245
condition: service_healthy
246246
sms:

tests/scripts/prepare-bellecour-fork-for-tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const APP_OWNER_WALLET = '0x626D65C778fB98f813C25F84249E3012B80e8d91';
2222
const LEARN_WORKERPOOL_ENS = 'prod-v8-learn.main.pools.iexec.eth';
2323
const PROD_WORKERPOOL_ENS = 'prod-v8-bellecour.main.pools.iexec.eth';
2424
// TODO change to prod ens when it's available
25-
const WEB3_TELEGRAM_DAPP_ADDRESS_ENS = 'web3telegram-test.apps.iexec.eth';
25+
const WEB3_TELEGRAM_DAPP_ADDRESS_ENS = 'web3telegram.apps.iexec.eth';
2626

2727
const rpcURL = DRONE ? 'http://bellecour-fork:8545' : 'http://127.0.0.1:8545';
2828

0 commit comments

Comments
 (0)