Parent Log:
http://ci.aztec-labs.com/5b0c3de501d8603e
Command: 4ef547fa5e299294:ISOLATE=1:NAME=p2p/src/client/p2p_client.integration.test.ts LOG_LEVEL=debug yarn-project/scripts/run_test.sh p2p/src/client/p2p_client.integration.test.ts
Commit:
https://github.com/AztecProtocol/aztec-packages/commit/016def8adbfe93f34b41a41f439b146b5318c895
Env: REF_NAME=gh-readonly-queue/next/pr-15237-d4893155ff105399557b55c16450c39921c70d11 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Tue Jun 24 11:55:38 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15237_amd64_x2-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_efa11ee7aa0bfe9b_next
11:55:38 +++ id -u
11:55:38 +++ id -g
11:55:38 ++ docker run -d --name p2p_src_client_p2p_client.integration.test.ts --net=none --cpuset-cpus=0-127 --cpus=2 --memory=8g --user 1000:1000 -v/home/aztec-dev:/home/aztec-dev --mount type=tmpfs,target=/tmp,tmpfs-size=1g --workdir /home/aztec-dev/aztec-packages -e HOME -e VERBOSE -e GIT_CONFIG_GLOBAL=/home/aztec-dev/aztec-packages/build-images/src/home/.gitconfig -e FORCE_COLOR=true -e CPUS -e MEM aztecprotocol/build:3.0 /bin/bash -c 'timeout -v 600s bash -c '\''LOG_LEVEL=debug yarn-project/scripts/run_test.sh p2p/src/client/p2p_client.integration.test.ts'\'''
11:55:39 + cid=686c7f69dc89eb32d53c5c3e6e18acd6dc8244b4ffbd78e4ca1b444ef5df8e3f
11:55:39 + set +x
11:55:40 {"level":25,"time":1750766140820,"pid":6,"hostname":"686c7f69dc89","module":"logger","msg":"Logger initialized with level debug"}
11:55:50 [11:55:50.123]
INFO:
p2p:test:integration Starting test p2p client integration returns undefined if unable to find a transaction from another peer
11:55:50 [11:55:50.213]
DEBUG:
foundation:randomness_singleton Using true randomness
11:55:50 {"level":20,"time":1750766150281,"pid":6,"hostname":"686c7f69dc89","name":"bb.js","name":"bb_wasm_sync","msg":"Fetching bb wasm from default location"}
11:55:50 {"level":20,"time":1750766150473,"pid":6,"hostname":"686c7f69dc89","name":"bb.js","name":"bb_wasm_sync","msg":"Compiling bb wasm of 12113510 bytes"}
11:56:00 [11:56:00.642]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
11:56:00 [11:56:00.647]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-7B626U with size: 10485760 KB (LMDB v2)
11:56:00 [11:56:00.648]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
11:56:00 [11:56:00.656]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-0eHvXJ with size: 10485760 KB (LMDB v2)
11:56:00 [11:56:00.656]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
11:56:00 [11:56:00.660]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-QOWvEd with size: 10485760 KB (LMDB v2)
11:56:00 [11:56:00.661]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
11:56:00 [11:56:00.664]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
11:56:00 [11:56:00.666]
INFO:
p2p:test:integration Tearing down state for p2p client integration returns undefined if unable to find a transaction from another peer
11:56:00 [11:56:00.666]
INFO:
p2p:test:integration Shut down p2p clients
11:56:00 [11:56:00.692]
INFO:
p2p:test:integration Starting test p2p client integration can request a transaction from another peer
11:56:00 {"level":20,"time":1750766150527,"pid":6,"hostname":"686c7f69dc89","name":"bb.js","name":"bb_wasm_sync","msg":"Compilation of bb wasm complete"}
11:56:00 {"level":20,"time":1750766150527,"pid":6,"hostname":"686c7f69dc89","name":"bb.js","name":"bb_wasm_sync","msg":"Initializing bb wasm: initial memory 32 pages 2MiB; max memory: 65536 pages, 4096MiB; threads: 1; shared memory: true"}
11:56:09 [11:56:09.817]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
11:56:09 [11:56:09.841]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-iz0DeB with size: 10485760 KB (LMDB v2)
11:56:09 [11:56:09.841]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
11:56:09 [11:56:09.844]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-s8HnPn with size: 10485760 KB (LMDB v2)
11:56:09 [11:56:09.844]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
11:56:09 [11:56:09.847]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-L3Us4p with size: 10485760 KB (LMDB v2)
11:56:09 [11:56:09.847]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
11:56:09 [11:56:09.849]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
11:56:09 [11:56:09.850]
INFO:
p2p:test:integration Tearing down state for p2p client integration can request a transaction from another peer
11:56:09 [11:56:09.850]
INFO:
p2p:test:integration Shut down p2p clients
11:56:09 [11:56:09.853]
INFO:
p2p:test:integration Starting test p2p client integration will penalize peers that send invalid proofs
11:56:19 [11:56:19.554]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
11:56:19 [11:56:19.556]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-U6HQs6 with size: 10485760 KB (LMDB v2)
11:56:19 [11:56:19.557]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
11:56:19 [11:56:19.559]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-1hfwII with size: 10485760 KB (LMDB v2)
11:56:19 [11:56:19.559]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
11:56:19 [11:56:19.561]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-5gwVS0 with size: 10485760 KB (LMDB v2)
11:56:19 [11:56:19.562]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
11:56:19 [11:56:19.563]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
11:56:19 [11:56:19.564]
INFO:
p2p:test:integration Tearing down state for p2p client integration will penalize peers that send invalid proofs
11:56:19 [11:56:19.564]
INFO:
p2p:test:integration Shut down p2p clients
11:56:19 [11:56:19.566]
INFO:
p2p:test:integration Starting test p2p client integration will penalize peers that send the wrong transaction
11:56:29 [11:56:29.376]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
11:56:29 [11:56:29.378]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-Zmo6DQ with size: 10485760 KB (LMDB v2)
11:56:29 [11:56:29.378]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
11:56:29 [11:56:29.381]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-w3cMDm with size: 10485760 KB (LMDB v2)
11:56:29 [11:56:29.381]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
11:56:29 [11:56:29.383]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-tBHmO2 with size: 10485760 KB (LMDB v2)
11:56:29 [11:56:29.383]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
11:56:29 [11:56:29.385]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
11:56:29 [11:56:29.387]
INFO:
p2p:test:integration Tearing down state for p2p client integration will penalize peers that send the wrong transaction
11:56:29 [11:56:29.388]
INFO:
p2p:test:integration Shut down p2p clients
11:56:29 [11:56:29.392]
INFO:
p2p:test:integration Starting test p2p client integration will propagate messages to peers at the same version
11:56:39 [11:56:39.331]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
11:56:39 [11:56:39.352]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-tciik3 with size: 10485760 KB (LMDB v2)
11:56:39 [11:56:39.354]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
11:56:39 [11:56:39.357]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-noVHn9 with size: 10485760 KB (LMDB v2)
11:56:39 [11:56:39.358]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
11:56:39 [11:56:39.360]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-mt7r73 with size: 10485760 KB (LMDB v2)
11:56:39 [11:56:39.361]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
11:56:39 [11:56:39.363]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
11:56:39 [11:56:39.364]
INFO:
p2p:test:integration Tearing down state for p2p client integration will propagate messages to peers at the same version
11:56:39 [11:56:39.365]
INFO:
p2p:test:integration Shut down p2p clients
11:56:39 [11:56:39.367]
INFO:
p2p:test:integration Starting test p2p client integration should not disconnect clients when it returns correct status
11:56:49 [11:56:49.568]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
11:56:49 [11:56:49.571]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-9gW97q with size: 10485760 KB (LMDB v2)
11:56:49 [11:56:49.571]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
11:56:49 [11:56:49.574]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-FzrhrJ with size: 10485760 KB (LMDB v2)
11:56:49 [11:56:49.574]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
11:56:49 [11:56:49.576]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-wrwqa0 with size: 10485760 KB (LMDB v2)
11:56:49 [11:56:49.577]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
11:56:49 [11:56:49.578]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
11:56:49 [11:56:49.580]
INFO:
p2p:test:integration Tearing down state for p2p client integration should not disconnect clients when it returns correct status
11:56:49 [11:56:49.580]
INFO:
p2p:test:integration Shut down p2p clients
11:56:49 [11:56:49.582]
INFO:
p2p:test:integration Starting test p2p client integration should disconnect client when it returns status with wrong version
11:57:00 [11:57:00.190]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
11:57:00 [11:57:00.194]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-nZddbh with size: 10485760 KB (LMDB v2)
11:57:00 [11:57:00.194]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
11:57:00 [11:57:00.198]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-HjdqGR with size: 10485760 KB (LMDB v2)
11:57:00 [11:57:00.198]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
11:57:00 [11:57:00.203]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-NIexgX with size: 10485760 KB (LMDB v2)
11:57:00 [11:57:00.203]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
11:57:00 [11:57:00.205]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
11:57:00 [11:57:00.207]
INFO:
p2p:test:integration Tearing down state for p2p client integration should disconnect client when it returns status with wrong version
11:57:00 [11:57:00.207]
INFO:
p2p:test:integration Shut down p2p clients
11:57:00 [11:57:00.210]
INFO:
p2p:test:integration Starting test p2p client integration should disconnect client when it returns an invalid status
11:57:10 [11:57:10.367]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
11:57:10 [11:57:10.370]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-i9F66v with size: 10485760 KB (LMDB v2)
11:57:10 [11:57:10.371]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
11:57:10 [11:57:10.374]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-gcCCwG with size: 10485760 KB (LMDB v2)
11:57:10 [11:57:10.374]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
11:57:10 [11:57:10.378]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-B1cKKc with size: 10485760 KB (LMDB v2)
11:57:10 [11:57:10.378]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
11:57:10 [11:57:10.380]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
11:57:10 [11:57:10.381]
INFO:
p2p:test:integration Tearing down state for p2p client integration should disconnect client when it returns an invalid status
11:57:10 [11:57:10.381]
INFO:
p2p:test:integration Shut down p2p clients
11:57:10 [11:57:10.383]
INFO:
p2p:test:integration Starting test p2p client integration propagates messages using mocked gossip sub network
11:57:21 [11:57:21.173]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
11:57:21 [11:57:21.175]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-g1nLDG with size: 10485760 KB (LMDB v2)
11:57:21 [11:57:21.176]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
11:57:21 [11:57:21.178]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-WpVKqn with size: 10485760 KB (LMDB v2)
11:57:21 [11:57:21.178]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
11:57:21 [11:57:21.180]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-nsJ5Lr with size: 10485760 KB (LMDB v2)
11:57:21 [11:57:21.180]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
11:57:21 [11:57:21.182]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
11:57:21 [11:57:21.184]
INFO:
p2p:test:integration Tearing down state for p2p client integration propagates messages using mocked gossip sub network
11:57:21 [11:57:21.185]
INFO:
p2p:test:integration Shut down p2p clients
11:57:21
FAIL src/client/p2p_client.integration.test.ts (
100.728 s)
11:57:21 p2p client integration
11:57:21
✕ returns undefined if unable to find a transaction from another peer (10548 ms)
11:57:21
✕ can request a transaction from another peer (9160 ms)
11:57:21
✕ will penalize peers that send invalid proofs (9713 ms)
11:57:21
✕ will penalize peers that send the wrong transaction (9822 ms)
11:57:21
✕ will propagate messages to peers at the same version (9975 ms)
11:57:21
✕ should not disconnect clients when it returns correct status (10214 ms)
11:57:21
✕ should disconnect client when it returns status with wrong version (10625 ms)
11:57:21
✕ should disconnect client when it returns an invalid status (10172 ms)
11:57:21
✕ propagates messages using mocked gossip sub network (10803 ms)
11:57:21
11:57:21
● p2p client integration › returns undefined if unable to find a transaction from another peer
11:57:21
11:57:21 TypeError: config.peerIdPrivateKey.getValue is not a function
11:57:21
11:57:21
135 |
11:57:21
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
11:57:21
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
11:57:21
| ^
11:57:21
138 | if (peerIdPrivateKeyFilePath) {
11:57:21
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
11:57:21
140 | } else {
11:57:21
11:57:21
at getValue (util.ts:137:58)
11:57:21
at getPeerIdPrivateKey (client/factory.ts:75:34)
11:57:21
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
11:57:21
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
11:57:21
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
11:57:21
at Object.<anonymous> (client/p2p_client.integration.test.ts:225:9)
11:57:21
11:57:21
● p2p client integration › can request a transaction from another peer
11:57:21
11:57:21 TypeError: config.peerIdPrivateKey.getValue is not a function
11:57:21
11:57:21
135 |
11:57:21
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
11:57:21
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
11:57:21
| ^
11:57:21
138 | if (peerIdPrivateKeyFilePath) {
11:57:21
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
11:57:21
140 | } else {
11:57:21
11:57:21
at getValue (util.ts:137:58)
11:57:21
at getPeerIdPrivateKey (client/factory.ts:75:34)
11:57:21
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
11:57:21
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
11:57:21
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
11:57:21
at Object.<anonymous> (client/p2p_client.integration.test.ts:256:9)
11:57:21
11:57:21
● p2p client integration › will penalize peers that send invalid proofs
11:57:21
11:57:21 TypeError: config.peerIdPrivateKey.getValue is not a function
11:57:21
11:57:21
135 |
11:57:21
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
11:57:21
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
11:57:21
| ^
11:57:21
138 | if (peerIdPrivateKeyFilePath) {
11:57:21
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
11:57:21
140 | } else {
11:57:21
11:57:21
at getValue (util.ts:137:58)
11:57:21
at getPeerIdPrivateKey (client/factory.ts:75:34)
11:57:21
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
11:57:21
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
11:57:21
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
11:57:21
at Object.<anonymous> (client/p2p_client.integration.test.ts:292:9)
11:57:21
11:57:21
● p2p client integration › will penalize peers that send the wrong transaction
11:57:21
11:57:21 TypeError: config.peerIdPrivateKey.getValue is not a function
11:57:21
11:57:21
135 |
11:57:21
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
11:57:21
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
11:57:21
| ^
11:57:21
138 | if (peerIdPrivateKeyFilePath) {
11:57:21
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
11:57:21
140 | } else {
11:57:21
11:57:21
at getValue (util.ts:137:58)
11:57:21
at getPeerIdPrivateKey (client/factory.ts:75:34)
11:57:21
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
11:57:21
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
11:57:21
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
11:57:21
at Object.<anonymous> (client/p2p_client.integration.test.ts:335:9)
11:57:21
11:57:21
● p2p client integration › will propagate messages to peers at the same version
11:57:21
11:57:21 TypeError: config.peerIdPrivateKey.getValue is not a function
11:57:21
11:57:21
135 |
11:57:21
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
11:57:21
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
11:57:21
| ^
11:57:21
138 | if (peerIdPrivateKeyFilePath) {
11:57:21
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
11:57:21
140 | } else {
11:57:21
11:57:21
at getValue (util.ts:137:58)
11:57:21
at getPeerIdPrivateKey (client/factory.ts:75:34)
11:57:21
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
11:57:21
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
11:57:21
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
11:57:21
at Object.<anonymous> (client/p2p_client.integration.test.ts:395:32)
11:57:21
11:57:21
● p2p client integration › should not disconnect clients when it returns correct status
11:57:21
11:57:21 TypeError: config.peerIdPrivateKey.getValue is not a function
11:57:21
11:57:21
135 |
11:57:21
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
11:57:21
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
11:57:21
| ^
11:57:21
138 | if (peerIdPrivateKeyFilePath) {
11:57:21
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
11:57:21
140 | } else {
11:57:21
11:57:21
at getValue (util.ts:137:58)
11:57:21
at getPeerIdPrivateKey (client/factory.ts:75:34)
11:57:21
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
11:57:21
at makeTestP2PClients (test-helpers/make-test-p2p-clients.ts:189:20)
11:57:21
at Object.<anonymous> (client/p2p_client.integration.test.ts:538:9)
11:57:21
11:57:21
● p2p client integration › should disconnect client when it returns status with wrong version
11:57:21
11:57:21 TypeError: config.peerIdPrivateKey.getValue is not a function
11:57:21
11:57:21
135 |
11:57:21
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
11:57:21
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
11:57:21
| ^
11:57:21
138 | if (peerIdPrivateKeyFilePath) {
11:57:21
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
11:57:21
140 | } else {
11:57:21
11:57:21
at getValue (util.ts:137:58)
11:57:21
at getPeerIdPrivateKey (client/factory.ts:75:34)
11:57:21
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
11:57:21
at makeTestP2PClients (test-helpers/make-test-p2p-clients.ts:189:20)
11:57:21
at Object.<anonymous> (client/p2p_client.integration.test.ts:573:9)
11:57:21
11:57:21
● p2p client integration › should disconnect client when it returns an invalid status
11:57:21
11:57:21 TypeError: config.peerIdPrivateKey.getValue is not a function
11:57:21
11:57:21
135 |
11:57:21
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
11:57:21
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
11:57:21
| ^
11:57:21
138 | if (peerIdPrivateKeyFilePath) {
11:57:21
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
11:57:21
140 | } else {
11:57:21
11:57:21
at getValue (util.ts:137:58)
11:57:21
at getPeerIdPrivateKey (client/factory.ts:75:34)
11:57:21
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
11:57:21
at makeTestP2PClients (test-helpers/make-test-p2p-clients.ts:189:20)
11:57:21
at Object.<anonymous> (client/p2p_client.integration.test.ts:609:9)
11:57:21
11:57:21
● p2p client integration › propagates messages using mocked gossip sub network
11:57:21
11:57:21 TypeError: config.peerIdPrivateKey.getValue is not a function
11:57:21
11:57:21
135 |
11:57:21
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
11:57:21
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
11:57:21
| ^
11:57:21
138 | if (peerIdPrivateKeyFilePath) {
11:57:21
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
11:57:21
140 | } else {
11:57:21
11:57:21
at getValue (util.ts:137:58)
11:57:21
at getPeerIdPrivateKey (client/factory.ts:75:34)
11:57:21
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
11:57:21
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
11:57:21
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
11:57:21
at Object.<anonymous> (client/p2p_client.integration.test.ts:679:32)
11:57:21
11:57:21
Test Suites: 1 failed, 1 total
11:57:21
Tests: 9 failed, 9 total
11:57:21
Snapshots: 0 total
11:57:21
Time: 100.869 s
11:57:21
Ran all test suites matching p2p/src/client/p2p_client.integration.test.ts
.
11:57:21
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?