Test failing when running on CircleCI


We have integration tests using DBUnit. When we run these tests on IntelliJ they all pass, but when we run on CircleCI we get some errors.The errors are assertions errors, like this one:

Caused by: junit.framework.ComparisonFailure: value (table=v_cs_consumer, row=2, col=ConsumerID) expected:<[3]> but was:<[4]>

Do you have any idea of what might be causing this difference between IntelliJ and CircleCI?


The problem was that some tests were leaving data on the database that made the tests like the one I mentioned above not work properly. The fix was to clean the database before running these tests.

This doesn’t explain why the problem doesn’t happen on IntelliJ but at least it got the problem fixed.


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.