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

test: fix redis not being used properly in imapClientFactoryTest #10076

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

st3iny
Copy link
Member

@st3iny st3iny commented Aug 30, 2024

Noticed while developing #10036.

The injected cache factory from OCP will always inject an ArrayCache instance when PHPUNIT_RUN is defined.

https://github.com/nextcloud/server/blob/606241caebda2e01702c0d08adbc35ace8d01f13/lib/private/Server.php#L600-L638

Force to use the configured cache and also assert that it is an instance of Redis in the affected test.

@st3iny st3iny self-assigned this Aug 30, 2024
@st3iny st3iny force-pushed the fix/imap/persist-deleted-messages branch from 44c5315 to 06fa8a8 Compare August 30, 2024 19:12
@st3iny st3iny force-pushed the fix/imap/persist-deleted-messages branch from 67a12d7 to c7dff93 Compare September 11, 2024 19:10
@st3iny st3iny force-pushed the fix/imap/persist-deleted-messages branch from 33cc44d to 3b577fe Compare September 23, 2024 06:49
@st3iny st3iny changed the base branch from fix/imap/persist-deleted-messages to main September 23, 2024 07:10
@st3iny st3iny marked this pull request as ready for review September 24, 2024 11:08
@kesselb kesselb merged commit b327357 into main Sep 24, 2024
36 checks passed
@kesselb kesselb deleted the test/redis-not-used branch September 24, 2024 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ☑️ Done
Development

Successfully merging this pull request may close these issues.

2 participants