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

create Testing-only mock ES client/search engine #11097

Open
whatisgalen opened this issue Jun 27, 2024 · 0 comments
Open

create Testing-only mock ES client/search engine #11097

whatisgalen opened this issue Jun 27, 2024 · 0 comments

Comments

@whatisgalen
Copy link
Member

Tests that write or read data from an ES index can fail because of the lag time in indexing. Furthermore, being able to know and manage state in tests doesn't really apply to the ES index. We should still be able to test code that ultimately sends a request to ES but that search backend should work synchronously in tests and should be easily maintainable as part of the test class tearDown method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant