Parent Log:
http://ci.aztec-labs.com/4c9c6ce753b843f4
Command: 6d103549f0f4c9d2: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/534f06e45f48274efd53a2204c90cb0b91a53efb
Env: REF_NAME=gh-readonly-queue/next/pr-15230-ad85cda24c2f9b5b4b17d4921f8597b71949bb6c CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Tue Jun 24 20:49:18 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15230_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_efa11ee7aa0bfe9b_next
20:49:18 +++ id -u
20:49:18 +++ id -g
20:49:18 ++ 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'\'''
20:49:18 + cid=fc7bbe9ccaea9ece0050a64516b10f7c954aab04b36c223b8df62425566eb7c7
20:49:18 + set +x
20:49:20 {"level":25,"time":1750798160170,"pid":7,"hostname":"fc7bbe9ccaea","module":"logger","msg":"Logger initialized with level debug"}
20:49:30 [20:49:30.607]
INFO:
p2p:test:integration Starting test p2p client integration returns undefined if unable to find a transaction from another peer
20:49:30 [20:49:30.690]
DEBUG:
foundation:randomness_singleton Using true randomness
20:49:31 {"level":20,"time":1750798170753,"pid":7,"hostname":"fc7bbe9ccaea","name":"bb.js","name":"bb_wasm_sync","msg":"Fetching bb wasm from default location"}
20:49:31 {"level":20,"time":1750798170989,"pid":7,"hostname":"fc7bbe9ccaea","name":"bb.js","name":"bb_wasm_sync","msg":"Compiling bb wasm of 12115448 bytes"}
20:49:41 [20:49:41.229]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
20:49:41 [20:49:41.236]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-SWkEBe with size: 10485760 KB (LMDB v2)
20:49:41 [20:49:41.236]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
20:49:41 [20:49:41.243]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-NhySLD with size: 10485760 KB (LMDB v2)
20:49:41 [20:49:41.244]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
20:49:41 [20:49:41.249]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-ppkkQY with size: 10485760 KB (LMDB v2)
20:49:41 [20:49:41.250]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
20:49:41 [20:49:41.254]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
20:49:41 [20:49:41.256]
INFO:
p2p:test:integration Tearing down state for p2p client integration returns undefined if unable to find a transaction from another peer
20:49:41 [20:49:41.256]
INFO:
p2p:test:integration Shut down p2p clients
20:49:41 [20:49:41.287]
INFO:
p2p:test:integration Starting test p2p client integration can request a transaction from another peer
20:49:41 {"level":20,"time":1750798171044,"pid":7,"hostname":"fc7bbe9ccaea","name":"bb.js","name":"bb_wasm_sync","msg":"Compilation of bb wasm complete"}
20:49:41 {"level":20,"time":1750798171044,"pid":7,"hostname":"fc7bbe9ccaea","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"}
20:49:50 [20:49:50.443]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
20:49:50 [20:49:50.446]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-T2XSxD with size: 10485760 KB (LMDB v2)
20:49:50 [20:49:50.446]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
20:49:50 [20:49:50.451]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-hChRa4 with size: 10485760 KB (LMDB v2)
20:49:50 [20:49:50.451]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
20:49:50 [20:49:50.454]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-Qw0Ycm with size: 10485760 KB (LMDB v2)
20:49:50 [20:49:50.454]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
20:49:50 [20:49:50.456]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
20:49:50 [20:49:50.457]
INFO:
p2p:test:integration Tearing down state for p2p client integration can request a transaction from another peer
20:49:50 [20:49:50.457]
INFO:
p2p:test:integration Shut down p2p clients
20:49:50 [20:49:50.460]
INFO:
p2p:test:integration Starting test p2p client integration will penalize peers that send invalid proofs
20:50:00 [20:50:00.099]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
20:50:00 [20:50:00.101]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-JAvIz5 with size: 10485760 KB (LMDB v2)
20:50:00 [20:50:00.101]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
20:50:00 [20:50:00.103]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-VmVYsv with size: 10485760 KB (LMDB v2)
20:50:00 [20:50:00.103]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
20:50:00 [20:50:00.105]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-aHEjEr with size: 10485760 KB (LMDB v2)
20:50:00 [20:50:00.105]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
20:50:00 [20:50:00.106]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
20:50:00 [20:50:00.107]
INFO:
p2p:test:integration Tearing down state for p2p client integration will penalize peers that send invalid proofs
20:50:00 [20:50:00.107]
INFO:
p2p:test:integration Shut down p2p clients
20:50:00 [20:50:00.109]
INFO:
p2p:test:integration Starting test p2p client integration will penalize peers that send the wrong transaction
20:50:09 [20:50:09.846]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
20:50:09 [20:50:09.849]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-t0BRW2 with size: 10485760 KB (LMDB v2)
20:50:09 [20:50:09.850]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
20:50:09 [20:50:09.858]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-C8gyrd with size: 10485760 KB (LMDB v2)
20:50:09 [20:50:09.859]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
20:50:09 [20:50:09.864]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-WxIUIK with size: 10485760 KB (LMDB v2)
20:50:09 [20:50:09.865]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
20:50:09 [20:50:09.873]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
20:50:09 [20:50:09.876]
INFO:
p2p:test:integration Tearing down state for p2p client integration will penalize peers that send the wrong transaction
20:50:09 [20:50:09.877]
INFO:
p2p:test:integration Shut down p2p clients
20:50:09 [20:50:09.882]
INFO:
p2p:test:integration Starting test p2p client integration will propagate messages to peers at the same version
20:50:20 [20:50:20.397]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
20:50:20 [20:50:20.415]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-xMCtiv with size: 10485760 KB (LMDB v2)
20:50:20 [20:50:20.418]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
20:50:20 [20:50:20.424]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-5CVlZz with size: 10485760 KB (LMDB v2)
20:50:20 [20:50:20.424]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
20:50:20 [20:50:20.426]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-qplHNz with size: 10485760 KB (LMDB v2)
20:50:20 [20:50:20.426]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
20:50:20 [20:50:20.428]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
20:50:20 [20:50:20.429]
INFO:
p2p:test:integration Tearing down state for p2p client integration will propagate messages to peers at the same version
20:50:20 [20:50:20.429]
INFO:
p2p:test:integration Shut down p2p clients
20:50:20 [20:50:20.432]
INFO:
p2p:test:integration Starting test p2p client integration should not disconnect clients when it returns correct status
20:50:31 [20:50:31.166]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
20:50:31 [20:50:31.172]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-u8FPSf with size: 10485760 KB (LMDB v2)
20:50:31 [20:50:31.172]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
20:50:31 [20:50:31.179]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-2JNnCR with size: 10485760 KB (LMDB v2)
20:50:31 [20:50:31.179]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
20:50:31 [20:50:31.183]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-lEEqMv with size: 10485760 KB (LMDB v2)
20:50:31 [20:50:31.183]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
20:50:31 [20:50:31.187]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
20:50:31 [20:50:31.188]
INFO:
p2p:test:integration Tearing down state for p2p client integration should not disconnect clients when it returns correct status
20:50:31 [20:50:31.188]
INFO:
p2p:test:integration Shut down p2p clients
20:50:31 [20:50:31.191]
INFO:
p2p:test:integration Starting test p2p client integration should disconnect client when it returns status with wrong version
20:50:41 [20:50:41.985]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
20:50:41 [20:50:41.986]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-t99hXx with size: 10485760 KB (LMDB v2)
20:50:41 [20:50:41.987]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
20:50:41 [20:50:41.989]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-EkmZoz with size: 10485760 KB (LMDB v2)
20:50:41 [20:50:41.989]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
20:50:41 [20:50:41.991]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-hN6zO8 with size: 10485760 KB (LMDB v2)
20:50:41 [20:50:41.991]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
20:50:41 [20:50:41.993]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
20:50:41 [20:50:41.993]
INFO:
p2p:test:integration Tearing down state for p2p client integration should disconnect client when it returns status with wrong version
20:50:41 [20:50:41.994]
INFO:
p2p:test:integration Shut down p2p clients
20:50:41 [20:50:41.995]
INFO:
p2p:test:integration Starting test p2p client integration should disconnect client when it returns an invalid status
20:50:52 [20:50:52.740]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
20:50:52 [20:50:52.741]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-jm4fzf with size: 10485760 KB (LMDB v2)
20:50:52 [20:50:52.742]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
20:50:52 [20:50:52.745]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-YzSUrQ with size: 10485760 KB (LMDB v2)
20:50:52 [20:50:52.745]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
20:50:52 [20:50:52.749]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-wBNHsW with size: 10485760 KB (LMDB v2)
20:50:52 [20:50:52.750]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
20:50:52 [20:50:52.753]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
20:50:52 [20:50:52.754]
INFO:
p2p:test:integration Tearing down state for p2p client integration should disconnect client when it returns an invalid status
20:50:52 [20:50:52.754]
INFO:
p2p:test:integration Shut down p2p clients
20:50:52 [20:50:52.758]
INFO:
p2p:test:integration Starting test p2p client integration propagates messages using mocked gossip sub network
20:51:03 [20:51:03.778]
VERBOSE:
archiver:mock_l2_block_source Created 100 blocks in the mock L2 block source
20:51:03 [20:51:03.783]
DEBUG:
kv-store:lmdb-v2:test Created temporary data store at: /tmp/test-62TFqe with size: 10485760 KB (LMDB v2)
20:51:03 [20:51:03.784]
INFO:
kv-store:lmdb-v2:test Starting data store with maxReaders 16
20:51:03 [20:51:03.787]
DEBUG:
p2p-archive:lmdb-v2 Created temporary data store at: /tmp/p2p-archive-50GDvI with size: 10485760 KB (LMDB v2)
20:51:03 [20:51:03.787]
INFO:
p2p-archive:lmdb-v2 Starting data store with maxReaders 16
20:51:03 [20:51:03.791]
DEBUG:
p2p-peer:lmdb-v2 Created temporary data store at: /tmp/p2p-peers-xA7T64 with size: 10485760 KB (LMDB v2)
20:51:03 [20:51:03.791]
INFO:
p2p-peer:lmdb-v2 Starting data store with maxReaders 16
20:51:03 [20:51:03.793]
VERBOSE:
p2p:0 P2P is enabled. Using LibP2P service.
20:51:03 [20:51:03.796]
INFO:
p2p:test:integration Tearing down state for p2p client integration propagates messages using mocked gossip sub network
20:51:03 [20:51:03.796]
INFO:
p2p:test:integration Shut down p2p clients
20:51:03
FAIL src/client/p2p_client.integration.test.ts (
103.972 s)
20:51:03 p2p client integration
20:51:03
✕ returns undefined if unable to find a transaction from another peer (10653 ms)
20:51:03
✕ can request a transaction from another peer (9171 ms)
20:51:03
✕ will penalize peers that send invalid proofs (9649 ms)
20:51:03
✕ will penalize peers that send the wrong transaction (9768 ms)
20:51:03
✕ will propagate messages to peers at the same version (10549 ms)
20:51:03
✕ should not disconnect clients when it returns correct status (10758 ms)
20:51:03
✕ should disconnect client when it returns status with wrong version (10804 ms)
20:51:03
✕ should disconnect client when it returns an invalid status (10761 ms)
20:51:03
✕ propagates messages using mocked gossip sub network (11040 ms)
20:51:03
20:51:03
● p2p client integration › returns undefined if unable to find a transaction from another peer
20:51:03
20:51:03 TypeError: config.peerIdPrivateKey.getValue is not a function
20:51:03
20:51:03
135 |
20:51:03
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
20:51:03
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
20:51:03
| ^
20:51:03
138 | if (peerIdPrivateKeyFilePath) {
20:51:03
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
20:51:03
140 | } else {
20:51:03
20:51:03
at getValue (util.ts:137:58)
20:51:03
at getPeerIdPrivateKey (client/factory.ts:75:34)
20:51:03
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
20:51:03
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
20:51:03
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
20:51:03
at Object.<anonymous> (client/p2p_client.integration.test.ts:225:9)
20:51:03
20:51:03
● p2p client integration › can request a transaction from another peer
20:51:03
20:51:03 TypeError: config.peerIdPrivateKey.getValue is not a function
20:51:03
20:51:03
135 |
20:51:03
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
20:51:03
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
20:51:03
| ^
20:51:03
138 | if (peerIdPrivateKeyFilePath) {
20:51:03
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
20:51:03
140 | } else {
20:51:03
20:51:03
at getValue (util.ts:137:58)
20:51:03
at getPeerIdPrivateKey (client/factory.ts:75:34)
20:51:03
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
20:51:03
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
20:51:03
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
20:51:03
at Object.<anonymous> (client/p2p_client.integration.test.ts:256:9)
20:51:03
20:51:03
● p2p client integration › will penalize peers that send invalid proofs
20:51:03
20:51:03 TypeError: config.peerIdPrivateKey.getValue is not a function
20:51:03
20:51:03
135 |
20:51:03
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
20:51:03
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
20:51:03
| ^
20:51:03
138 | if (peerIdPrivateKeyFilePath) {
20:51:03
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
20:51:03
140 | } else {
20:51:03
20:51:03
at getValue (util.ts:137:58)
20:51:03
at getPeerIdPrivateKey (client/factory.ts:75:34)
20:51:03
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
20:51:03
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
20:51:03
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
20:51:03
at Object.<anonymous> (client/p2p_client.integration.test.ts:292:9)
20:51:03
20:51:03
● p2p client integration › will penalize peers that send the wrong transaction
20:51:03
20:51:03 TypeError: config.peerIdPrivateKey.getValue is not a function
20:51:03
20:51:03
135 |
20:51:03
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
20:51:03
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
20:51:03
| ^
20:51:03
138 | if (peerIdPrivateKeyFilePath) {
20:51:03
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
20:51:03
140 | } else {
20:51:03
20:51:03
at getValue (util.ts:137:58)
20:51:03
at getPeerIdPrivateKey (client/factory.ts:75:34)
20:51:03
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
20:51:03
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
20:51:03
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
20:51:03
at Object.<anonymous> (client/p2p_client.integration.test.ts:335:9)
20:51:03
20:51:03
● p2p client integration › will propagate messages to peers at the same version
20:51:03
20:51:03 TypeError: config.peerIdPrivateKey.getValue is not a function
20:51:03
20:51:03
135 |
20:51:03
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
20:51:03
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
20:51:03
| ^
20:51:03
138 | if (peerIdPrivateKeyFilePath) {
20:51:03
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
20:51:03
140 | } else {
20:51:03
20:51:03
at getValue (util.ts:137:58)
20:51:03
at getPeerIdPrivateKey (client/factory.ts:75:34)
20:51:03
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
20:51:03
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
20:51:03
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
20:51:03
at Object.<anonymous> (client/p2p_client.integration.test.ts:395:32)
20:51:03
20:51:03
● p2p client integration › should not disconnect clients when it returns correct status
20:51:03
20:51:03 TypeError: config.peerIdPrivateKey.getValue is not a function
20:51:03
20:51:03
135 |
20:51:03
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
20:51:03
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
20:51:03
| ^
20:51:03
138 | if (peerIdPrivateKeyFilePath) {
20:51:03
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
20:51:03
140 | } else {
20:51:03
20:51:03
at getValue (util.ts:137:58)
20:51:03
at getPeerIdPrivateKey (client/factory.ts:75:34)
20:51:03
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
20:51:03
at makeTestP2PClients (test-helpers/make-test-p2p-clients.ts:189:20)
20:51:03
at Object.<anonymous> (client/p2p_client.integration.test.ts:538:9)
20:51:03
20:51:03
● p2p client integration › should disconnect client when it returns status with wrong version
20:51:03
20:51:03 TypeError: config.peerIdPrivateKey.getValue is not a function
20:51:03
20:51:03
135 |
20:51:03
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
20:51:03
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
20:51:03
| ^
20:51:03
138 | if (peerIdPrivateKeyFilePath) {
20:51:03
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
20:51:03
140 | } else {
20:51:03
20:51:03
at getValue (util.ts:137:58)
20:51:03
at getPeerIdPrivateKey (client/factory.ts:75:34)
20:51:03
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
20:51:03
at makeTestP2PClients (test-helpers/make-test-p2p-clients.ts:189:20)
20:51:03
at Object.<anonymous> (client/p2p_client.integration.test.ts:573:9)
20:51:03
20:51:03
● p2p client integration › should disconnect client when it returns an invalid status
20:51:03
20:51:03 TypeError: config.peerIdPrivateKey.getValue is not a function
20:51:03
20:51:03
135 |
20:51:03
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
20:51:03
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
20:51:03
| ^
20:51:03
138 | if (peerIdPrivateKeyFilePath) {
20:51:03
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
20:51:03
140 | } else {
20:51:03
20:51:03
at getValue (util.ts:137:58)
20:51:03
at getPeerIdPrivateKey (client/factory.ts:75:34)
20:51:03
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
20:51:03
at makeTestP2PClients (test-helpers/make-test-p2p-clients.ts:189:20)
20:51:03
at Object.<anonymous> (client/p2p_client.integration.test.ts:609:9)
20:51:03
20:51:03
● p2p client integration › propagates messages using mocked gossip sub network
20:51:03
20:51:03 TypeError: config.peerIdPrivateKey.getValue is not a function
20:51:03
20:51:03
135 |
20:51:03
136 | // If the peerIdPrivateKey is provided in the config, we use it and persist it in either a file or the node's store
20:51:03
> 137 | if (config.peerIdPrivateKey && config.peerIdPrivateKey.getValue().trim()) {
20:51:03
| ^
20:51:03
138 | if (peerIdPrivateKeyFilePath) {
20:51:03
139 | await writePrivateKeyToFile(peerIdPrivateKeyFilePath, config.peerIdPrivateKey.getValue());
20:51:03
140 | } else {
20:51:03
20:51:03
at getValue (util.ts:137:58)
20:51:03
at getPeerIdPrivateKey (client/factory.ts:75:34)
20:51:03
at makeTestP2PClient (test-helpers/make-test-p2p-clients.ts:98:18)
20:51:03
at makeAndStartTestP2PClient (test-helpers/make-test-p2p-clients.ts:47:18)
20:51:03
at makeAndStartTestP2PClients (test-helpers/make-test-p2p-clients.ts:142:20)
20:51:03
at Object.<anonymous> (client/p2p_client.integration.test.ts:679:32)
20:51:03
20:51:03
Test Suites: 1 failed, 1 total
20:51:03
Tests: 9 failed, 9 total
20:51:03
Snapshots: 0 total
20:51:03
Time: 104.076 s
20:51:03
Ran all test suites matching p2p/src/client/p2p_client.integration.test.ts
.
20:51:03
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?