Parent Log:
http://ci.aztec-labs.com/b257ea932e254c84
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/d4893155ff105399557b55c16450c39921c70d11
Env: REF_NAME=gh-readonly-queue/next/pr-15218-7edf16da6c056f9499e2dfd9c71fb9b7580f9bfc CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Tue Jun 24 10:28:00 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15218_amd64_x4-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_efa11ee7aa0bfe9b_next
10:28:00 +++ id -u
10:28:00 +++ id -g
10:28:00 ++ 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'\'''
10:28:00 + cid=d93c4dae4572f36e9d46e3d5ec5a4a6a0a601b578d14971e653d8e1540d9db67
10:28:00 + set +x
10:28:02 {"level":25,"time":1750760882343,"pid":7,"hostname":"d93c4dae4572","module":"logger","msg":"Logger initialized with level debug"}
10:28:12 [10:28:12.452]
INFO:
p2p:test:integration Starting test p2p client integration returns undefined if unable to find a transaction from another peer
10:28:12 [10:28:12.553]
DEBUG:
foundation:randomness_singleton Using true randomness
10:28:13 {"level":20,"time":1750760892614,"pid":7,"hostname":"d93c4dae4572","name":"bb.js","name":"bb_wasm_sync","msg":"Fetching bb wasm from default location"}
10:28:13 {"level":20,"time":1750760892811,"pid":7,"hostname":"d93c4dae4572","name":"bb.js","name":"bb_wasm_sync","msg":"Compiling bb wasm of 12113510 bytes"}
10:28:22 [10:28:22.335]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
10:28:22 [10:28:22.340]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-7drzyR with size: 10485760 KB (LMDB v2)
10:28:22 [10:28:22.341]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
10:28:22 [10:28:22.353]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-CqkmTs with size: 10485760 KB (LMDB v2)
10:28:22 [10:28:22.353]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
10:28:22 [10:28:22.357]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-72tWMs with size: 10485760 KB (LMDB v2)
10:28:22 [10:28:22.358]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
10:28:22 [10:28:22.362]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
10:28:22 [10:28:22.363]
INFO:
p2p:test:integration Tearing down state for p2p client integration returns undefined if unable to find a transaction from another peer
10:28:22 [10:28:22.363]
INFO:
p2p:test:integration Shut down p2p clients
10:28:22 [10:28:22.386]
INFO:
p2p:test:integration Starting test p2p client integration can request a transaction from another peer
10:28:22 {"level":20,"time":1750760892860,"pid":7,"hostname":"d93c4dae4572","name":"bb.js","name":"bb_wasm_sync","msg":"Compilation of bb wasm complete"}
10:28:22 {"level":20,"time":1750760892860,"pid":7,"hostname":"d93c4dae4572","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"}
10:28:31 [10:28:31.050]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
10:28:31 [10:28:31.069]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-sQEvD4 with size: 10485760 KB (LMDB v2)
10:28:31 [10:28:31.069]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
10:28:31 [10:28:31.072]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-Wv8s05 with size: 10485760 KB (LMDB v2)
10:28:31 [10:28:31.073]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
10:28:31 [10:28:31.075]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-gUzK3M with size: 10485760 KB (LMDB v2)
10:28:31 [10:28:31.076]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
10:28:31 [10:28:31.077]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
10:28:31 [10:28:31.079]
INFO:
p2p:test:integration Tearing down state for p2p client integration can request a transaction from another peer
10:28:31 [10:28:31.079]
INFO:
p2p:test:integration Shut down p2p clients
10:28:31 [10:28:31.083]
INFO:
p2p:test:integration Starting test p2p client integration will penalize peers that send invalid proofs
10:28:40 [10:28:40.617]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
10:28:40 [10:28:40.620]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-evyeVd with size: 10485760 KB (LMDB v2)
10:28:40 [10:28:40.620]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
10:28:40 [10:28:40.624]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-fHm1Rx with size: 10485760 KB (LMDB v2)
10:28:40 [10:28:40.625]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
10:28:40 [10:28:40.630]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-bMGQYE with size: 10485760 KB (LMDB v2)
10:28:40 [10:28:40.630]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
10:28:40 [10:28:40.633]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
10:28:40 [10:28:40.634]
INFO:
p2p:test:integration Tearing down state for p2p client integration will penalize peers that send invalid proofs
10:28:40 [10:28:40.634]
INFO:
p2p:test:integration Shut down p2p clients
10:28:40 [10:28:40.636]
INFO:
p2p:test:integration Starting test p2p client integration will penalize peers that send the wrong transaction
10:28:50 [10:28:50.349]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
10:28:50 [10:28:50.351]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-mkobIb with size: 10485760 KB (LMDB v2)
10:28:50 [10:28:50.351]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
10:28:50 [10:28:50.354]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-xQhmAT with size: 10485760 KB (LMDB v2)
10:28:50 [10:28:50.354]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
10:28:50 [10:28:50.355]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-pCiVd1 with size: 10485760 KB (LMDB v2)
10:28:50 [10:28:50.356]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
10:28:50 [10:28:50.357]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
10:28:50 [10:28:50.358]
INFO:
p2p:test:integration Tearing down state for p2p client integration will penalize peers that send the wrong transaction
10:28:50 [10:28:50.358]
INFO:
p2p:test:integration Shut down p2p clients
10:28:50 [10:28:50.360]
INFO:
p2p:test:integration Starting test p2p client integration will propagate messages to peers at the same version
10:29:00 [10:29:00.403]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
10:29:00 [10:29:00.406]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-348ndQ with size: 10485760 KB (LMDB v2)
10:29:00 [10:29:00.406]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
10:29:00 [10:29:00.411]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-UIv0Na with size: 10485760 KB (LMDB v2)
10:29:00 [10:29:00.411]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
10:29:00 [10:29:00.413]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-395TMq with size: 10485760 KB (LMDB v2)
10:29:00 [10:29:00.413]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
10:29:00 [10:29:00.415]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
10:29:00 [10:29:00.416]
INFO:
p2p:test:integration Tearing down state for p2p client integration will propagate messages to peers at the same version
10:29:00 [10:29:00.416]
INFO:
p2p:test:integration Shut down p2p clients
10:29:00 [10:29:00.419]
INFO:
p2p:test:integration Starting test p2p client integration should not disconnect clients when it returns correct status
10:29:10 [10:29:10.778]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
10:29:10 [10:29:10.797]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-zFcoS9 with size: 10485760 KB (LMDB v2)
10:29:10 [10:29:10.797]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
10:29:10 [10:29:10.800]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-OIUqPF with size: 10485760 KB (LMDB v2)
10:29:10 [10:29:10.801]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
10:29:10 [10:29:10.803]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-lCWoWY with size: 10485760 KB (LMDB v2)
10:29:10 [10:29:10.803]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
10:29:10 [10:29:10.805]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
10:29:10 [10:29:10.806]
INFO:
p2p:test:integration Tearing down state for p2p client integration should not disconnect clients when it returns correct status
10:29:10 [10:29:10.806]
INFO:
p2p:test:integration Shut down p2p clients
10:29:10 [10:29:10.809]
INFO:
p2p:test:integration Starting test p2p client integration should disconnect client when it returns status with wrong version
10:29:20 [10:29:20.990]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
10:29:20 [10:29:20.992]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-UNvqNQ with size: 10485760 KB (LMDB v2)
10:29:20 [10:29:20.993]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
10:29:20 [10:29:20.996]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-9a92Yt with size: 10485760 KB (LMDB v2)
10:29:20 [10:29:20.996]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
10:29:20 [10:29:20.998]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-pTYQfZ with size: 10485760 KB (LMDB v2)
10:29:20 [10:29:20.998]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
10:29:21 [10:29:21.000]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
10:29:21 [10:29:21.001]
INFO:
p2p:test:integration Tearing down state for p2p client integration should disconnect client when it returns status with wrong version
10:29:21 [10:29:21.001]
INFO:
p2p:test:integration Shut down p2p clients
10:29:21 [10:29:21.003]
INFO:
p2p:test:integration Starting test p2p client integration should disconnect client when it returns an invalid status
10:29:31 [10:29:31.005]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
10:29:31 [10:29:31.008]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-iJwx26 with size: 10485760 KB (LMDB v2)
10:29:31 [10:29:31.008]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
10:29:31 [10:29:31.011]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-OkjNo1 with size: 10485760 KB (LMDB v2)
10:29:31 [10:29:31.011]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
10:29:31 [10:29:31.013]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-3LPEm6 with size: 10485760 KB (LMDB v2)
10:29:31 [10:29:31.013]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
10:29:31 [10:29:31.015]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
10:29:31 [10:29:31.016]
INFO:
p2p:test:integration Tearing down state for p2p client integration should disconnect client when it returns an invalid status
10:29:31 [10:29:31.016]
INFO:
p2p:test:integration Shut down p2p clients
10:29:31 [10:29:31.019]
INFO:
p2p:test:integration Starting test p2p client integration propagates messages using mocked gossip sub network
10:29:41 [10:29:41.612]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
10:29:41 [10:29:41.638]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-k5iBGb with size: 10485760 KB (LMDB v2)
10:29:41 [10:29:41.640]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
10:29:41 [10:29:41.643]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-x6KzR4 with size: 10485760 KB (LMDB v2)
10:29:41 [10:29:41.644]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
10:29:41 [10:29:41.647]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-VSCsKo with size: 10485760 KB (LMDB v2)
10:29:41 [10:29:41.647]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
10:29:41 [10:29:41.649]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
10:29:41 [10:29:41.650]
INFO:
p2p:test:integration Tearing down state for p2p client integration propagates messages using mocked gossip sub network
10:29:41 [10:29:41.651]
INFO:
p2p:test:integration Shut down p2p clients
10:29:41
FAIL src/client/p2p_client.integration.test.ts (
99.634 s)
10:29:41 p2p client integration
10:29:41
✕ returns undefined if unable to find a transaction from another peer (9917 ms)
10:29:41
✕ can request a transaction from another peer (8694 ms)
10:29:41
✕ will penalize peers that send invalid proofs (9553 ms)
10:29:41
✕ will penalize peers that send the wrong transaction (9722 ms)
10:29:41
✕ will propagate messages to peers at the same version (10057 ms)
10:29:41
✕ should not disconnect clients when it returns correct status (10389 ms)
10:29:41
✕ should disconnect client when it returns status with wrong version (10194 ms)
10:29:41
✕ should disconnect client when it returns an invalid status (10013 ms)
10:29:41
✕ propagates messages using mocked gossip sub network (10633 ms)
10:29:41
10:29:41
● p2p client integration › returns undefined if unable to find a transaction from another peer
10:29:41
10:29:41 TypeError: config.peerIdPrivateKey.getValue is not a function
10:29:41
10:29:41
135 |
10:29:41
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
10:29:41
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
10:29:41
| ^
10:29:41
138 | if (peerIdPrivateKeyFilePath) {
10:29:41
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
10:29:41
140 | } else {
10:29:41
10:29:41
at getValue (util.ts:137:58)
10:29:41
at getPeerIdPrivateKey (client/factory.ts:75:34)
10:29:41
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
10:29:41
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
10:29:41
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
10:29:41
at Object.<anonymous> (client/p2p_client.integration.test.ts:225:9)
10:29:41
10:29:41
● p2p client integration › can request a transaction from another peer
10:29:41
10:29:41 TypeError: config.peerIdPrivateKey.getValue is not a function
10:29:41
10:29:41
135 |
10:29:41
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
10:29:41
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
10:29:41
| ^
10:29:41
138 | if (peerIdPrivateKeyFilePath) {
10:29:41
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
10:29:41
140 | } else {
10:29:41
10:29:41
at getValue (util.ts:137:58)
10:29:41
at getPeerIdPrivateKey (client/factory.ts:75:34)
10:29:41
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
10:29:41
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
10:29:41
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
10:29:41
at Object.<anonymous> (client/p2p_client.integration.test.ts:256:9)
10:29:41
10:29:41
● p2p client integration › will penalize peers that send invalid proofs
10:29:41
10:29:41 TypeError: config.peerIdPrivateKey.getValue is not a function
10:29:41
10:29:41
135 |
10:29:41
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
10:29:41
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
10:29:41
| ^
10:29:41
138 | if (peerIdPrivateKeyFilePath) {
10:29:41
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
10:29:41
140 | } else {
10:29:41
10:29:41
at getValue (util.ts:137:58)
10:29:41
at getPeerIdPrivateKey (client/factory.ts:75:34)
10:29:41
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
10:29:41
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
10:29:41
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
10:29:41
at Object.<anonymous> (client/p2p_client.integration.test.ts:292:9)
10:29:41
10:29:41
● p2p client integration › will penalize peers that send the wrong transaction
10:29:41
10:29:41 TypeError: config.peerIdPrivateKey.getValue is not a function
10:29:41
10:29:41
135 |
10:29:41
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
10:29:41
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
10:29:41
| ^
10:29:41
138 | if (peerIdPrivateKeyFilePath) {
10:29:41
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
10:29:41
140 | } else {
10:29:41
10:29:41
at getValue (util.ts:137:58)
10:29:41
at getPeerIdPrivateKey (client/factory.ts:75:34)
10:29:41
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
10:29:41
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
10:29:41
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
10:29:41
at Object.<anonymous> (client/p2p_client.integration.test.ts:335:9)
10:29:41
10:29:41
● p2p client integration › will propagate messages to peers at the same version
10:29:41
10:29:41 TypeError: config.peerIdPrivateKey.getValue is not a function
10:29:41
10:29:41
135 |
10:29:41
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
10:29:41
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
10:29:41
| ^
10:29:41
138 | if (peerIdPrivateKeyFilePath) {
10:29:41
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
10:29:41
140 | } else {
10:29:41
10:29:41
at getValue (util.ts:137:58)
10:29:41
at getPeerIdPrivateKey (client/factory.ts:75:34)
10:29:41
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
10:29:41
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
10:29:41
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
10:29:41
at Object.<anonymous> (client/p2p_client.integration.test.ts:395:32)
10:29:41
10:29:41
● p2p client integration › should not disconnect clients when it returns correct status
10:29:41
10:29:41 TypeError: config.peerIdPrivateKey.getValue is not a function
10:29:41
10:29:41
135 |
10:29:41
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
10:29:41
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
10:29:41
| ^
10:29:41
138 | if (peerIdPrivateKeyFilePath) {
10:29:41
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
10:29:41
140 | } else {
10:29:41
10:29:41
at getValue (util.ts:137:58)
10:29:41
at getPeerIdPrivateKey (client/factory.ts:75:34)
10:29:41
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
10:29:41
at makeTestP2PClients (test-helpers/make-test-p2p-clients.ts:189:20)
10:29:41
at Object.<anonymous> (client/p2p_client.integration.test.ts:538:9)
10:29:41
10:29:41
● p2p client integration › should disconnect client when it returns status with wrong version
10:29:41
10:29:41 TypeError: config.peerIdPrivateKey.getValue is not a function
10:29:41
10:29:41
135 |
10:29:41
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
10:29:41
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
10:29:41
| ^
10:29:41
138 | if (peerIdPrivateKeyFilePath) {
10:29:41
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
10:29:41
140 | } else {
10:29:41
10:29:41
at getValue (util.ts:137:58)
10:29:41
at getPeerIdPrivateKey (client/factory.ts:75:34)
10:29:41
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
10:29:41
at makeTestP2PClients (test-helpers/make-test-p2p-clients.ts:189:20)
10:29:41
at Object.<anonymous> (client/p2p_client.integration.test.ts:573:9)
10:29:41
10:29:41
● p2p client integration › should disconnect client when it returns an invalid status
10:29:41
10:29:41 TypeError: config.peerIdPrivateKey.getValue is not a function
10:29:41
10:29:41
135 |
10:29:41
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
10:29:41
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
10:29:41
| ^
10:29:41
138 | if (peerIdPrivateKeyFilePath) {
10:29:41
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
10:29:41
140 | } else {
10:29:41
10:29:41
at getValue (util.ts:137:58)
10:29:41
at getPeerIdPrivateKey (client/factory.ts:75:34)
10:29:41
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
10:29:41
at makeTestP2PClients (test-helpers/make-test-p2p-clients.ts:189:20)
10:29:41
at Object.<anonymous> (client/p2p_client.integration.test.ts:609:9)
10:29:41
10:29:41
● p2p client integration › propagates messages using mocked gossip sub network
10:29:41
10:29:41 TypeError: config.peerIdPrivateKey.getValue is not a function
10:29:41
10:29:41
135 |
10:29:41
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
10:29:41
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
10:29:41
| ^
10:29:41
138 | if (peerIdPrivateKeyFilePath) {
10:29:41
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
10:29:41
140 | } else {
10:29:41
10:29:41
at getValue (util.ts:137:58)
10:29:41
at getPeerIdPrivateKey (client/factory.ts:75:34)
10:29:41
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
10:29:41
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
10:29:41
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
10:29:41
at Object.<anonymous> (client/p2p_client.integration.test.ts:679:32)
10:29:41
10:29:41
Test Suites: 1 failed, 1 total
10:29:41
Tests: 9 failed, 9 total
10:29:41
Snapshots: 0 total
10:29:41
Time: 99.721 s
10:29:41
Ran all test suites matching p2p/src/client/p2p_client.integration.test.ts
.
10:29:41
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?