Skip to content

Commit a43ab3d

Browse files
test: fix constructor test and update test utilities
- Fix constructor test error message expectation (remove dappAddress from missing config) - Update test utilities for bulk processing support
1 parent 1b02e06 commit a43ab3d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

tests/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ services:
9898
- 6379:6379
9999

100100
market-watcher:
101-
image: iexechub/iexec-market-watcher:6.4
101+
image: iexechub/iexec-market-watcher:7.0.0
102102
restart: unless-stopped
103103
environment:
104104
CHAIN: BELLECOUR
@@ -116,7 +116,7 @@ services:
116116
condition: service_started
117117

118118
market-api:
119-
image: iexechub/iexec-market-api:6.4
119+
image: iexechub/iexec-market-api:7.1.0
120120
restart: unless-stopped
121121
ports:
122122
- 3000:3000

tests/e2e/constructor.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ describe('IExecWeb3mail()', () => {
146146
it('should throw a configuration error', async () => {
147147
const web3mail = new IExecWeb3mail(experimentalNetworkSigner);
148148
await expect(web3mail.init()).rejects.toThrow(
149-
'Missing required configuration for chainId 421614: dataProtectorSubgraph, dappAddress, whitelistSmartContract, ipfsGateway, prodWorkerpoolAddress, ipfsUploadUrl'
149+
'Missing required configuration for chainId 421614: dataProtectorSubgraph, whitelistSmartContract, ipfsGateway, prodWorkerpoolAddress, ipfsUploadUrl'
150150
);
151151
});
152152
});

tests/test-utils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import { randomInt } from 'crypto';
1010
import { getSignerFromPrivateKey } from 'iexec/utils';
1111

1212
export const TEST_CHAIN = {
13+
ipfsGateway: 'http://127.0.0.1:8080',
14+
ipfsNode: 'http://127.0.0.1:5001',
1315
rpcURL: 'http://127.0.0.1:8545',
1416
chainId: '134',
1517
smsURL: 'http://127.0.0.1:13300',
@@ -75,6 +77,8 @@ export const getTestIExecOption = () => ({
7577
iexecGatewayURL: TEST_CHAIN.iexecGatewayURL,
7678
voucherHubAddress: TEST_CHAIN.voucherHubAddress,
7779
voucherSubgraphURL: TEST_CHAIN.voucherSubgraphURL,
80+
ipfsGateway: TEST_CHAIN.ipfsGateway,
81+
ipfsNode: TEST_CHAIN.ipfsNode,
7882
});
7983

8084
export const getTestConfig = (

0 commit comments

Comments
 (0)