commit | eb17f91c03faaa951b73f615ce2d50bb0857eee5 | [log] [tgz] |
---|---|---|
author | Vadim Shtayura <vadimsh@chromium.org> | Wed Nov 08 21:57:49 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Nov 08 23:34:36 2017 |
tree | 1c81a3bd99edbafca22dca9d763372db05495c15 | |
parent | dc3dadfea846f82d79ceb757ef284169d61435ff [diff] |
Refactor httpserver_mock in attempt to get rid of deadlocks. Changes: * Encapsulate knowledge of magical URLs (e.g '/on/quit') in the base class. * Terminate the server only after handling the magical URL (i.e. drain the queue of pending requests before quiting). * Stop prefixing public API methods of MockHandler with '_'. * Merge 'close_start' and 'close_end'. 'close_end' was essentially instantaneous, since 'close_start' did most of the blocking waiting on /on/quit to finish. * Create MockCipdServer lazily in run_isolated_test.py, it's not needed in every test. R=maruel@chromium.org Change-Id: I83f2bda520315d069e3ad255ceb5f242687c9c3f Reviewed-on: https://chromium-review.googlesource.com/758833 Reviewed-by: Marc-Antoine Ruel <maruel@chromium.org> Commit-Queue: Vadim Shtayura <vadimsh@chromium.org> Cr-Mirrored-From: https://chromium.googlesource.com/infra/luci/luci-py Cr-Mirrored-Commit: e7f0aa8b5360f75af68c7321882457f893a243cd
This is the Python Client code for LUCI. It's part of the main python repo, and is also mirrored into a standalone client-py repo.
This project is licensed under Apache v2.0 license. See LICENSE for details.