Skip to content

Don't ignore sql test query exception, add it as cause exception#5484

Merged
kiview merged 2 commits intotestcontainers:masterfrom
anatoly0karyakin:sql-test-query-exception
Jun 13, 2022
Merged

Don't ignore sql test query exception, add it as cause exception#5484
kiview merged 2 commits intotestcontainers:masterfrom
anatoly0karyakin:sql-test-query-exception

Conversation

@anatoly0karyakin
Copy link
Copy Markdown
Contributor

No description provided.

@anatoly0karyakin anatoly0karyakin requested a review from a team June 11, 2022 13:58
@anatoly0karyakin
Copy link
Copy Markdown
Contributor Author

provided
If test running with info logging level real sql exception is hidden. In my case it was "ORA-01882: timezone region not found". So "Container is started, but cannot be accessed by (JDBC URL: %s), please check container logs" is misleading in my case. Additional configuration was required on a client side. From my point of view having real sql exception can be helpful for solving issues.

Copy link
Copy Markdown
Member

@kiview kiview left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A very useful addition, thanks @anatoly0karyakin.

@kiview kiview added this to the next milestone Jun 13, 2022
@kiview kiview merged commit e7cdfa3 into testcontainers:master Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants