ln-docker-daemons 5.0.6 → 5.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Versions
2
2
 
3
- ## 5.0.6
3
+ ## 5.0.7
4
4
 
5
5
  - Change default LND version to v0.16.3-beta
6
6
 
package/package.json CHANGED
@@ -9,21 +9,19 @@
9
9
  "dependencies": {
10
10
  "@alexbosworth/node-fetch": "2.6.2",
11
11
  "async": "3.2.4",
12
- "asyncjs-util": "1.2.11",
12
+ "asyncjs-util": "1.2.12",
13
13
  "dockerode": "3.3.5",
14
14
  "find-free-ports": "3.1.1",
15
- "lightning": "9.7.0",
15
+ "lightning": "9.8.0",
16
16
  "tar-stream": "3.1.4"
17
17
  },
18
18
  "description": "Spawn and control LN Docker daemons",
19
- "devDependencies": {
20
- "@alexbosworth/tap": "15.0.12"
21
- },
22
19
  "engines": {
23
20
  "node": ">=16"
24
21
  },
25
22
  "keywords": [
26
- "docker"
23
+ "docker",
24
+ "lnd"
27
25
  ],
28
26
  "license": "MIT",
29
27
  "main": "index.js",
@@ -33,7 +31,7 @@
33
31
  "url": "https://github.com/alexbosworth/ln-docker-daemons.git"
34
32
  },
35
33
  "scripts": {
36
- "test": "tap --branches=1 --functions=1 --lines=1 --statements=1 -j 1 test/bitcoind/*.js test/lnd/*.js"
34
+ "test": "npx nyc@15.1 node --experimental-test-coverage --test"
37
35
  },
38
- "version": "5.0.6"
36
+ "version": "5.0.7"
39
37
  }
@@ -1,17 +1,24 @@
1
- const {test} = require('@alexbosworth/tap');
1
+ const test = require('node:test');
2
+
3
+ const {findFreePorts} = require('find-free-ports');
2
4
 
3
5
  const {spawnBitcoindDocker} = require('./../../');
4
6
 
5
7
  // Spawning a Bitcoin Core docker image should launch
6
- test('Spawn Bitcoin Core Docker image', async ({end}) => {
8
+ test('Spawn Bitcoin Core Docker image', async () => {
9
+ const [p2pPort, rpcPort, zmqBlockPort, zmqTxPort] = await findFreePorts(
10
+ 4,
11
+ {startPort: 5000}
12
+ );
13
+
7
14
  const {kill} = await spawnBitcoindDocker({
8
- p2p_port: 18458,
9
- rpc_port: 18459,
10
- zmq_block_port: 18460,
11
- zmq_tx_port: 18461,
15
+ p2p_port: p2pPort,
16
+ rpc_port: rpcPort,
17
+ zmq_block_port: zmqBlockPort,
18
+ zmq_tx_port: zmqTxPort,
12
19
  });
13
20
 
14
21
  await kill({});
15
22
 
16
- return end();
23
+ return;
17
24
  });
@@ -1,9 +1,9 @@
1
- const {test} = require('@alexbosworth/tap');
1
+ const test = require('node:test');
2
2
 
3
3
  const {spawnLightningDocker} = require('./../../');
4
4
 
5
5
  // Spawning a Lightning node docker image should launch
6
- test('Spawn Lightning node image', async ({end}) => {
6
+ test('Spawn Lightning node image', async () => {
7
7
  const {kill} = await spawnLightningDocker({
8
8
  chain_p2p_port: 18458,
9
9
  chain_rpc_port: 18459,
@@ -17,5 +17,5 @@ test('Spawn Lightning node image', async ({end}) => {
17
17
 
18
18
  await kill({});
19
19
 
20
- return end();
20
+ return;
21
21
  });