holochain / tryorama

Toolset to manage Holochain conductors and facilitate test scenarios
212 stars 14 forks source link

Tryorama tests fail because of connection errors even after all tests succeeded #198

Open guillemcordoba opened 4 months ago

guillemcordoba commented 4 months ago

In a sample app scaffolded from the open-dev templates, when I run the tryorama tests, they all pass, but the process itself errors out because of weird websocket connection errors:

13:07:38 [Tryorama - Local Conductor] info: # lair-keystore connection_url # unix:///tmp/ggliK4NGrgRK66STI5l8f/ks/socket?k=m4Yi_KoRd0KTr_VRFnkePCi_IseNesr7GIOe48zmBn8 #
# lair-keystore running #

stdout | src/forum/posts/all-posts.test.ts > create a Post and get all posts
13:07:43 [Tryorama - Local Conductor] info: # lair-keystore connection_url # unix:///tmp/SE1tKnH44Ng5GGIOpDN4u/ks/socket?k=3g6QVzsXMvegy7I5n_7VUzMM8Jr2ezJbZ4gFQL4GtSM #
# lair-keystore running #

13:07:43 [Tryorama - Local Conductor] info: # lair-keystore connection_url # unix:///tmp/Yb1-l5G9KlRHOIGepdvyP/ks/socket?k=fWDEZiz1QSZIcd0Wz37izk0t0tBgTHYBQGAW_MlcPzE #
# lair-keystore running #

stdout | src/forum/posts/all-posts.test.ts > create a Post and get all posts
13:07:43 [Tryorama - Local Conductor] info:
Conductor ready.

 ✓ src/forum/posts/comment.test.ts (4) 83154ms
 ✓ src/forum/posts/post.test.ts (4) 53184ms
 ✓ src/forum/posts/like.test.ts (3) 19201ms
 ✓ src/forum/posts/comment-to-likes.test.ts (1) 13881ms
 ✓ src/forum/posts/post-to-likes.test.ts (1) 13894ms
 ✓ src/forum/posts/certificate-to-likes.test.ts (1) 13083ms
 ✓ src/forum/posts/certificate.test.ts (2) 25732ms
 ✓ src/forum/posts/creator-to-posts.test.ts (1) 3816ms
 ✓ src/forum/posts/posts-by-author-entry-hash.test.ts (1) 13850ms
 ✓ src/forum/posts/posts-by-author.test.ts (1) 13856ms
 ✓ src/forum/posts/all-posts-entry-hash.test.ts (1) 4804ms
 ✓ src/forum/posts/all-posts.test.ts (1) 13861ms

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

Vitest caught 25 unhandled errors during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30001/ - Error: connect ECONNREFUSED 127.0.0.1:30001
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/post.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create and update Post". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30001/ - Error: connect ECONNREFUSED 127.0.0.1:30001
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/comment-to-likes.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Comment to a Like". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30004/ - Error: connect ECONNREFUSED 127.0.0.1:30004
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/post-to-likes.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Post to a Like". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30006/ - Error: connect ECONNREFUSED 127.0.0.1:30006
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/post-to-likes.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Post to a Like". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30006/ - Error: connect ECONNREFUSED 127.0.0.1:30006
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/certificate-to-likes.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Certificate to a Like". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30006/ - Error: connect ECONNREFUSED 127.0.0.1:30006
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/certificate-to-likes.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Certificate to a Like". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30006/ - Error: connect ECONNREFUSED 127.0.0.1:30006
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/certificate-to-likes.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Certificate to a Like". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30001/ - Error: connect ECONNREFUSED 127.0.0.1:30001
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/certificate-to-likes.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Certificate to a Like". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30001/ - Error: connect ECONNREFUSED 127.0.0.1:30001
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/certificate.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create and read Certificate". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30001/ - Error: connect ECONNREFUSED 127.0.0.1:30001
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/certificate.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create and read Certificate". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30001/ - Error: connect ECONNREFUSED 127.0.0.1:30001
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/certificate.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create and read Certificate". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30003/ - Error: connect ECONNREFUSED 127.0.0.1:30003
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/certificate.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create and read Certificate". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30006/ - Error: connect ECONNREFUSED 127.0.0.1:30006
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/certificate.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create and read Certificate". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30003/ - Error: connect ECONNREFUSED 127.0.0.1:30003
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/certificate.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create and read Certificate". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30001/ - Error: connect ECONNREFUSED 127.0.0.1:30001
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/creator-to-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Creator to a Post". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30006/ - Error: connect ECONNREFUSED 127.0.0.1:30006
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/posts-by-author-entry-hash.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get posts by author entry hash". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30001/ - Error: connect ECONNREFUSED 127.0.0.1:30001
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/posts-by-author.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get posts by author". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30003/ - Error: connect ECONNREFUSED 127.0.0.1:30003
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/posts-by-author.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get posts by author". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30003/ - Error: connect ECONNREFUSED 127.0.0.1:30003
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/posts-by-author.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get posts by author". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30000/ - Error: connect ECONNREFUSED 127.0.0.1:30000
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/posts-by-author.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get posts by author". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30006/ - Error: connect ECONNREFUSED 127.0.0.1:30006
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/posts-by-author.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get posts by author". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30000/ - Error: connect ECONNREFUSED 127.0.0.1:30000
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/all-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get all posts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30005/ - Error: connect ECONNREFUSED 127.0.0.1:30005
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/all-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get all posts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
internal_error: Conductor returned an error while using a ConductorApi: CellMissing(CellId(DnaHash(uhC0kpWI_MkdEp0s7wGPCWyJnWfs4kVAMbmJ9y10f33LEtCiSywYc), AgentPubKey(uhCAkISDXd8cXhfB5lBQCovQISdM5S9n4U24SN6lOtE8foWN61EjS)))
 ❯ catchError ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/common.js:38:23
 ❯ processTicksAndRejections node:internal/process/task_queues:95:5
 ❯ AppWebsocket.callZome ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/common.js:13:22
 ❯ fetch ../node_modules/.pnpm/@holochain-open-dev+stores@0.300.0-dev.3_@types+react@18.2.75/node_modules/@holochain-open-dev/stores/src/holochain.ts:582:29

This error originated in "src/forum/posts/all-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get all posts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://127.0.0.1:30006/ - Error: connect ECONNREFUSED 127.0.0.1:30006
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.8/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/forum/posts/all-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get all posts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

 Test Files  12 passed (12)
      Tests  21 passed (21)
     Errors  25 errors
   Start at  13:03:24
   Duration  272.67s (transform 73ms, setup 0ms, collect 246ms, tests 272.32s, environment 0ms, prepare 33ms)

/tmp/forum-lit-open-dev/tests:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  tests@ test: `vitest run`
Exit status 1

forum-lit-open-dev on  main [!+?]  🦀 ❄️  nix-shell-env took 4m33s

Tryorama v0.16.0-dev.2

jost-s commented 4 months ago

@guillemcordoba Does this happen on your local machine or on a CI pipeline?

guillemcordoba commented 4 months ago

Local machine... Although I think I have seen it fail on CI as well, if I find the action run I'll add it here.

jost-s commented 4 months ago

I'm having trouble getting to a working scaffolded project - see the issues.

The last one that I'm stuck at is running the tests using

$ pnpm test

> peter-dev@ test /Users/jost/Desktop/holochain/scaffolded-tryorama/peter
> pnpm run build:happ && nix flake check -L && pnpm -F tests test

> peter-dev@ build:happ /Users/jost/Desktop/holochain/scaffolded-tryorama/peter
> nix build -L .#peter.meta.debug -o workdir/peter-debug.happ

warning: Git tree '/Users/jost/Desktop/holochain/scaffolded-tryorama/peter' is dirty
error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'peter'
         whose name attribute is located at /nix/store/j10523yhkcc34478azkgcl70yzcx6j2j-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'buildCommand' of derivation 'peter'

         at /nix/store/j10523yhkcc34478azkgcl70yzcx6j2j-source/pkgs/build-support/trivial-builders/default.nix:68:16:

           67|         enableParallelBuilding = true;
           68|         inherit buildCommand name;
             |                ^
           69|         passAsFile = [ "buildCommand" ]

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute 'hans' missing

       at /nix/store/j0ziw7wdvr1y1jgzg48zdafdskx4s1j7-source/happ.nix:23:18:

           22|           # This overrides all the "bundled" properties for the hApp manifest
           23|           hans = self'.packages.hans;
             |                  ^
           24|         };
 ELIFECYCLE  Command failed with exit code 1.
 ELIFECYCLE  Test failed. See above for more details.

Must be happening because I don't have the hc-infra pnpm.

jost-s commented 4 months ago

I still couldn't create the reproduction, but #199 should fix this issue.

guillemcordoba commented 4 months ago

Still happening for me with holochain v0.3.0-beta-dev.45 and tryorama v0.16.0-dev.3.

# lair-keystore running #

stdout | src/all-posts.test.ts > create a Post and get all posts
17:29:11 [Tryorama - Local Conductor] info: # lair-keystore connection_url # unix:///tmp/nix-shell.ci3Bc2/zIbpVEdh8y2xESpsRVCmU/ks/socket?k=ZgubSwkBbIoMz_hZzXKV9khh54h3DSiCuYmJ8eCE2H4 #
# lair-keystore running #

stdout | src/all-posts.test.ts > create a Post and get all posts
17:29:11 [Tryorama - Local Conductor] info: # lair-keystore connection_url # unix:///tmp/nix-shell.ci3Bc2/Pm0Kzn3d_5y3GynfBusLh/ks/socket?k=z_4z8pmZ2xQBlFx5Z1jMu75U-P4cNDmuBlHUXAHuMmY #
# lair-keystore running #

stdout | src/all-posts.test.ts > create a Post and get all posts
17:29:11 [Tryorama - Local Conductor] info:
Conductor ready.

 ✓ src/comment.test.ts (4) 73320ms
 ✓ src/post.test.ts (4) 73151ms
 ✓ src/like.test.ts (3) 19057ms
 ✓ src/post-to-likes.test.ts (1) 13878ms
 ✓ src/comment-to-likes.test.ts (1) 23894ms
 ✓ src/certificate-to-likes.test.ts (1) 13058ms
 ✓ src/certificate.test.ts (2) 25660ms
 ✓ src/creator-to-posts.test.ts (1) 61883ms
 ✓ src/posts-by-author-entry-hash.test.ts (1) 13826ms
 ✓ src/posts-by-author.test.ts (1) 4808ms
 ✓ src/all-posts-entry-hash.test.ts (1) 13833ms
 ✓ src/all-posts.test.ts (1) 12829ms

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

Vitest caught 15 unhandled errors during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30002/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.9/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/comment-to-likes.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Comment to a Like". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30002/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.9/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/certificate.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create and read Certificate". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
internal_error: Conductor returned an error while using a ConductorApi: CellMissing(CellId(DnaHash(uhC0kZGtEN-5Q8gK2vYQnTcQiUQiNc3ofixB7veSQ6eBG1XeLB3pD), AgentPubKey(uhCAktRT7eMP7pnTlQIaf5LFew7-Y_kzjB_F44XCcXZv2yFr5v-mP)))
 ❯ catchError ../node_modules/.pnpm/@holochain+client@0.17.0-dev.9/node_modules/@holochain/client/lib/api/common.js:38:23
 ❯ processTicksAndRejections node:internal/process/task_queues:95:5
 ❯ AppWebsocket.callZome ../node_modules/.pnpm/@holochain+client@0.17.0-dev.9/node_modules/@holochain/client/lib/api/common.js:13:22
 ❯ fetch ../node_modules/.pnpm/@holochain-open-dev+stores@0.300.0-dev.4_@types+react@18.2.79/node_modules/@holochain-open-dev/stores/src/holochain.ts:595:29

This error originated in "src/certificate.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create and read Certificate". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30002/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.9/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/certificate.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create and read Certificate". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30004/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.9/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/creator-to-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Creator to a Post". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30002/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.9/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/creator-to-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Creator to a Post". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30004/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.9/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/creator-to-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Creator to a Post". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30002/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.9/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/creator-to-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Creator to a Post". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30004/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.9/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/creator-to-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Creator to a Post". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30002/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.9/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/creator-to-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Creator to a Post". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30004/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.9/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/creator-to-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "link a Creator to a Post". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
internal_error: Conductor returned an error while using a ConductorApi: CellMissing(CellId(DnaHash(uhC0kvvJnliscgHnVdjfO6KqREfgabNDW5u1gOIAPSe81qJtFUUYt), AgentPubKey(uhCAkmyyGU5Vli7e-G29ACNj5d-cLhpj8e-1u9AdZF-jPoepPlDpE)))
 ❯ catchError ../node_modules/.pnpm/@holochain+client@0.17.0-dev.9/node_modules/@holochain/client/lib/api/common.js:38:23
 ❯ processTicksAndRejections node:internal/process/task_queues:95:5
 ❯ AppWebsocket.callZome ../node_modules/.pnpm/@holochain+client@0.17.0-dev.9/node_modules/@holochain/client/lib/api/common.js:13:22
 ❯ fetch ../node_modules/.pnpm/@holochain-open-dev+stores@0.300.0-dev.4_@types+react@18.2.79/node_modules/@holochain-open-dev/stores/src/holochain.ts:595:29

This error originated in "src/posts-by-author.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get posts by author". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30004/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.9/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/all-posts-entry-hash.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get all posts entry hash". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30002/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.9/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/all-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get all posts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
ConnectionError: could not connect to Holochain Conductor API at ws://localhost:30004/ - AggregateError
 ❯ WebSocket.socket.onerror ../node_modules/.pnpm/@holochain+client@0.17.0-dev.9/node_modules/@holochain/client/lib/api/client.js:135:28
 ❯ callListener ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:290:14
 ❯ WebSocket.onError ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/event-target.js:230:9
 ❯ WebSocket.emit node:events:518:28
 ❯ emitErrorAndClose ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:1033:13
 ❯ ClientRequest.<anonymous> ../node_modules/.pnpm/ws@8.16.0/node_modules/ws/lib/websocket.js:880:5
 ❯ ClientRequest.emit node:events:518:28
 ❯ Socket.socketErrorListener node:_http_client:495:9
 ❯ Socket.emit node:events:518:28
 ❯ emitErrorNT node:internal/streams/destroy:169:8

This error originated in "src/all-posts.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "create a Post and get all posts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

 Test Files  12 passed (12)
      Tests  21 passed (21)
     Errors  15 errors
   Start at  17:23:33
   Duration  349.53s (transform 70ms, setup 0ms, collect 226ms, tests 349.20s, environment 0ms, prepare 33ms)

/tmp/posts-open-dev/posts/tests:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  tests@ test: `vitest run`
Exit status 1

In my experience, this does not happen if I run tryorama tests of only one file, only happens with multiple files, which is a long execution time.

jost-s commented 4 months ago

So is it vitest related? Has this ever worked?

jost-s commented 2 months ago

@guillemcordoba Does this still happen by the way?

guillemcordoba commented 2 months ago

Yeap! Still happening with HC 0.3.1-rc.2