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

Delay response doesnt work as expected #58

Open
ZhanatM opened this issue Oct 23, 2020 · 0 comments
Open

Delay response doesnt work as expected #58

ZhanatM opened this issue Oct 23, 2020 · 0 comments

Comments

@ZhanatM
Copy link

ZhanatM commented Oct 23, 2020

Hello guys,

I noticed that when I use delay response in ui test, and in this response I return some value to assert in UI test, delayed response sometimes come after I made assertion.

So, first I mock response with delay like this router["/api/v2/users"] = DelayResponse(JSONResponse(......)), and after I assert value I got from response file, or assert ui element that I enabled in this mocked response. So this kind of tests are flaky, because depending on delay time, it gives back response after assertion.

Deleting delay response solves this flakiness. But why it happens with DelayResponse?

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

No branches or pull requests

1 participant