c0c9ea9Make http server fixture's handle() thread safe
As stated in the here implemented 'ServerWithExpectations' fixture: "handlers, as well as failures, need to be thread-safe" This concrete case was working most of the time since usually there are not more than one expectations for the same request. But if the same request is expected several times, and the requests are received in parallel (as it is the case for metadata download), the handle() method behaved flaky - by not doing reading and updating of the 'run' flag as an atomic operation. 700b042Avoid assertion error in HttpServer.toString
Co-Authored-By: Jonathan Leitschuh <Jonathan.Leitschuh@gradle.com> |
![]() |