mirror of https://github.com/sbt/sbt.git
The server tests were very unreliable on travis ci. The problem seemed to be that the execution context used by the calls to Future() in readFrame was getting blocked, preventing the test from processing any new responses. This is fixed by spawning a background thread that reads json from the server and writes the responses to a queue. By doing this, we also don't need to reset the connection when one of the checks times out. As a result, we can make the Socket a val rather than a var. |
||
|---|---|---|
| .. | ||
| server-test | ||
| test/scala | ||