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

🤖 Fix stub methods to pass tests #2087

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

jeremyf
Copy link
Contributor

@jeremyf jeremyf commented Dec 20, 2023

These tests weren't verifying that we could reach Redis; they were
testing the interface of the RedisEndpoint#ping by mocking the
instance.

This commit changes the mocking by avoiding a call to
Hyrax::RedisEventStore.instance which was raising a Redis connection
error.

Again, this test is not is redis connecting but "assume we are trying to
connect to redis now demonstrate ping."

These tests weren't verifying that we could reach Redis; they were
testing the interface of the `RedisEndpoint#ping` by mocking the
instance.

This commit changes the mocking by avoiding a call to
`Hyrax::RedisEventStore.instance` which was raising a Redis connection
error.

Again, this test is not is redis connecting but "assume we are trying to
connect to redis now demonstrate ping."
@jeremyf jeremyf merged commit 87ce1dc into hyrax-5-upgrade Dec 20, 2023
1 of 3 checks passed
@jeremyf jeremyf deleted the hyrax-5-upgrade-redis-end-point-fix branch December 20, 2023 18:19
@kirkkwang kirkkwang mentioned this pull request Jan 5, 2024
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.

2 participants