Skip to content

Commit e73ed4d

Browse files
test: fix side effects on tests
1 parent bb7c660 commit e73ed4d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

test/lib/e2e/IExecTaskModule.test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
sleep,
1919
} from '../../test-utils.js';
2020
import '../../jest-setup.js';
21-
import { errors } from '../../../src/lib/index.js';
21+
import { errors, IExec } from '../../../src/lib/index.js';
2222
import { WorkerpoolCallError } from '../../../src/lib/errors.js';
2323

2424
const { ObjectNotFoundError, IpfsGatewayCallError } = errors;
@@ -63,9 +63,7 @@ describe('task', () => {
6363
});
6464

6565
test('downloads the result archive from IPFS', async () => {
66-
const { iexec: iexecReadOnly } = getTestConfig(iexecTestChain)({
67-
readOnly: true,
68-
});
66+
const iexecReadOnly = new IExec({ ethProvider: 'bellecour' });
6967
const res = await iexecReadOnly.task.fetchResults(
7068
BELLECOUR_COMPLETED_TASK_ID,
7169
);

test/lib/unit/config.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ describe('getChainDefaults', () => {
2727
hub: '0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f',
2828
iexecGateway: 'https://api.market.v8-bellecour.iex.ec',
2929
ipfsGateway: 'https://ipfs-gateway.v8-bellecour.iex.ec',
30+
ipfsNode: 'https://ipfs-upload.v8-bellecour.iex.ec',
3031
name: 'bellecour',
3132
pocoSubgraph: 'https://thegraph.iex.ec/subgraphs/name/bellecour/poco-v5',
3233
resultProxy: 'https://result.v8-bellecour.iex.ec',

0 commit comments

Comments
 (0)