workOwonworkOwonA New Way to Connect
HomeFeedJobsCommunitiesEventsFeaturesAbout workOwon
HomeFeedJobsCommunitiesEventsFeaturesAbout workOwon
HomeCommunitiesJava & Spring Developers India

We used H2 for integration tests for years. Every few months a query that passed on H2 failed on Postgres i…

H

Harshita

SDET | Playwright, Selenium, REST Assured | Quality is a team sport

7 Oct 2026· Java & Spring Developers India

We used H2 for integration tests for years. Every few months a query that passed on H2 failed on Postgres in prod. Moved to Testcontainers with the real Postgres image + reusable containers. Test suite went from 6 to 8 minutes, and we haven't had a dialect bug since. Tip: enable container reuse locally (testcontainers.reuse.enable=true) and the suite feels almost as fast as H2.
9 reactions4 comments

Comments

  • AS

    Aarav Sharma7 Oct 2026

    H2 dialect bugs are a rite of passage. +1 to Testcontainers.

  • DJ

    Dhruv Joshi7 Oct 2026

    Does this work well in GitHub Actions? Docker in CI has been flaky for us.

  • H

    Harshita7 Oct 2026

    @Dhruv works fine on the ubuntu runners since Docker is preinstalled. Most flakiness we saw was from not waiting on the container's health check.

  • HY

    Happy Yadav9 Oct 2026

    Wow nice

Join the conversation

Join workOwon to react, comment and follow people and communities you care about.

Log inJoin now

Popular communities

See all