Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mock database dependency as it is being pulled in by the CacheWrapper #1543

Merged
merged 1 commit into from
Jun 17, 2021

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Jun 17, 2021

Test failed after nextcloud/server#26874 was merged since the CacheWrapper now has a dependency on the database connection which is being pulled in through the server container.

Fixes #1537

… with 22

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍 assuming that the DB connection is not touched/relevant for this set of tests

otherwise need to add @group DB at the top of the file

@juliusknorr
Copy link
Member Author

Yep the CacheWrapperTest is just testing its internal code with mocks, apart from the constructor there does not seem to be a database dependency there.

@juliusknorr juliusknorr merged commit b6ef686 into master Jun 17, 2021
@juliusknorr juliusknorr deleted the test/1537/database-deps branch June 17, 2021 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI failures due to invalid test
2 participants