![]() |
![]() |
ffa72b7Make 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. |
![]() |
Got a suggestion or an issue?
Discuss it on the Atlassian Community or
visit Atlassian Support for other options.