Skip to content

Commit 7244b84

Browse files
author
Mark Tyneway
committed
test: use nonstandard ports to prevent collisions
1 parent 8c49016 commit 7244b84

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

test/wallet-rpc-test.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,33 @@ const mnemonics = require('./data/mnemonic-english.json');
1515
// Commonly used test mnemonic
1616
const phrase = mnemonics[0][1];
1717

18+
const ports = {
19+
p2p: 14331,
20+
node: 14332,
21+
wallet: 14333
22+
};
23+
1824
const node = new FullNode({
1925
network: network.type,
2026
apiKey: 'bar',
2127
walletAuth: true,
2228
memory: true,
29+
port: ports.p2p,
30+
httpPort: ports.node,
2331
workers: true,
24-
plugins: [require('../lib/wallet/plugin')]
32+
plugins: [require('../lib/wallet/plugin')],
33+
env: {
34+
'HSD_WALLET_HTTP_PORT': ports.wallet.toString()
35+
}
2536
});
2637

2738
const nclient = new NodeClient({
28-
port: network.rpcPort,
39+
port: ports.node,
2940
apiKey: 'bar'
3041
});
3142

3243
const wclient = new WalletClient({
33-
port: network.walletPort,
44+
port: ports.wallet,
3445
apiKey: 'bar'
3546
});
3647

0 commit comments

Comments
 (0)