schemathesis / schemathesis

Supercharge your API testing, catch bugs, and ensure compliance

Home Page:https://schemathesis.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

schemathesis and fastapi with elasticsearch

navik86 opened this issue · comments

Hi. Someone tested the compatibility of this:

schemathesis==3.26.0
fastapi==0.104.1
elasticsearch[async]<=8.0.0

Problem: Strange behavior with opening/closing the loop.
For a moment, the connection to the elastic is in the closed loop and test failed.

For example:
id elastic.transport.loop - 46912948386512 <_Unix SelectorEventLoop started=False closed=True debugging=False>
id get_event_loop - 46912936546320 <_Unix SelectorEventLoop started=True closed=False debugging=False>

It should be the same thing.

Hi @navik86

Could you please share some specific reproduction sample?

The traceback is helpful but does not give me a way to reproduce the issue

I can't share this project.

Then I can't do anything without a way to reproduce the issue, as it is not specific nor actionable from the given description. I don't know how you set up your tests and don't have the time to do the guesswork as there could be tons of conditions that may lead to the behavior you observe.

However, it is not necessary to share the project per se, you may try to build a minimal case that uses similar dependencies, but not necessarily the same code as you have in your project. Another alternative is to share the repro sample in private if it works for you (e.g. in Discord)

There are also specific bug report templates that you did not use for some reason. It contains specific questions so I don't have to ask them all manually in separate comments, so both of us can save time.