question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tigerbeetle testcontainer crashes while running backend tests on macOS M1

See original GitHub issue

I tried to run backend tests on two different Macbook Air M1 and when I used yarn workspace backend test I got the same error. The container in the context of the error is a Tigerbeetle container. Unlike the Tigerbeetle container, testcontainers container and Postgres container don’t crash. I tried to check docker logs but the container crashes as it opens, so it wasn’t possible to check logs at least for me. I don’t have this problem on my Linux machine, that’s why I believe the issue is related to macOS.

macOS version: Monterey 12.2.1 Node version: v14.19.0, v16.14.1, v17.6.0 Docker version: Docker Desktop for Mac 4.6.0

Error: Log stream ended and message "/listening on/" was not received for 42d7e88d9171a63a77e593d0a2e0c9478718d6aa2194c3656c8ed738c6a9f51b
    at LineStream.<anonymous> (/Users/omertoast/rafiki/.yarn/cache/testcontainers-npm-7.20.4-706f1bf23f-cb141138ae.zip/node_modules/testcontainers/dist/wait-strategy.js:112:28)
    at LineStream.emit (node:events:526:28)
    at endReadableNT (node:internal/streams/readable:1345:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
omertoastcommented, Mar 21, 2022

I forgot to mention that I already tried it and I got the same error.

1reaction
wilsonianbcommented, Mar 17, 2022

@jorangreef Thanks. Hopefully it’s just a matter of updating Rafiki to the latest Tigerbeetle. Github Actions appear to be disabled in the tigerbeetle repo, so there isn’t currently a recent Docker image.

@omertoast You could try checking out this branch and running the Rafiki backend tests: ~https://github.com/wilsonianb/rafiki/tree/bw-test-tigerbeetle~ https://github.com/wilsonianb/rafiki/tree/bw-update-tigerbeetle

Read more comments on GitHub >

github_iconTop Results From Across the Web

Test containers does not work on Mac with M1 Chip #5266
Hi, I have Macbook Air with M1 Chip and I tried to execute my java tests with test containers (with Cassandra) on this...
Read more >
Test container error when starting docker from macbook m1
This is a well known VirtualBox bug. Now i cannot running testContainer because it required Docker machine. I cannot start because VirtualBox ...
Read more >
Networking and communicating with containers - Testcontainers
Exposing container ports to the host. It is common to want to connect to a container from your test process, running on the...
Read more >
Integration tests with Testcontainers - Zalando Engineering Blog
We explore how to write integration tests using Testcontainers.org library in Java-based backend applications.
Read more >
Testcontainers and Spring Boot from integration tests to local ...
Jun 13, 2022 Spring I/O 2022 - Barcelona, 26-27 MayTestcontainers libraries integrate with Spring Boot to offer seamless, unit- test like ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found