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
Route test never finishes waiting on CountDownLatch #1615
Comments
Please refrain from cross posting like this. Issues are for issues and not general questions. You should use probes for each of your tests which were explained in the Stack Overflow answewr |
@ktoso If you looked at the SO thread, you'd see that I clearly mentioned probes are not the issue. Just because someone made an attempt doesn't mean it's the right answer. And as far as cross-posting goes, I did put the SO link, didn't I? |
I don't know if it is related but when I run the complete Akka HTTP test suite I never get back the sbt prompt. I'm assuming the tests hang somewhere but I didn't investigate. |
@jonas I didn’t find any tests for |
There are several test in the documentation examples under |
I searched the whole codebase, and there isn't a single instance of |
@jonas I got it working myself and have a theory that I'll appreciate if you can comment on.
My theory is that putting Using autopilot sets up an "expectation" that can be fulfilled later thus avoiding the deadlock. |
c.f. https://stackoverflow.com/questions/47636871/why-does-this-akka-http-route-test-never-complete-successfully
Some debugging shows that the following code in
RouteTestResultComponent
is causing the problemI'm not sure yet why, but the
latch
is never decremented causing the request to eventually time out withinawaitResult
The text was updated successfully, but these errors were encountered: