Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Fix bug testcontainers not being used correctly #173

Merged
merged 7 commits into from
Apr 1, 2022

Conversation

Mikxox
Copy link
Contributor

@Mikxox Mikxox commented Apr 1, 2022

Spring overwrites the testcontainer connection by using the getDataSource bean from DataSourceConfig.kt. This means integration tests were connecting to your actual local database and not the testcontainer database. This could obviously lead to wrong results! Has now been fixed and integration tests now don't need a companion object anymore.

@Mikxox Mikxox marked this pull request as ready for review April 1, 2022 12:43
@Mikxox Mikxox requested a review from Nyxes5 April 1, 2022 16:19
@Mikxox Mikxox merged commit 36717a8 into development Apr 1, 2022
@Mikxox Mikxox deleted the fix-testcontainers branch April 1, 2022 16:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants