Merge lp:~vanvugt/mir/catchup-1570698 into lp:mir
Proposed by
Daniel van Vugt
Status: | Merged |
---|---|
Approved by: | Daniel van Vugt |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3714 |
Proposed branch: | lp:~vanvugt/mir/catchup-1570698 |
Merge into: | lp:mir |
Diff against target: |
35 lines (+12/-6) 1 file modified
tests/acceptance-tests/test_client_input.cpp (+12/-6) |
To merge this branch: | bzr merge lp:~vanvugt/mir/catchup-1570698 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mir CI Bot | continuous-integration | Approve | |
Chris Halse Rogers | Approve | ||
Review via email: mp+306572@code.launchpad.net |
Commit message
Improve the robustness of acceptance test:
TestClientInp
so that it is now less likely to fail on a heavily loaded or slow system.
(LP: #1570698)
Description of the change
In reality we haven't seen this test actually fail for almost three months but this is aimed at helping Brandon to get one of his branches to pass.
I actually started out trying to introduce fake server timestamps but found they created a lot of failures under Valgrind, presumably because the client wasn't using the same fake clock. But we should try to do that in future.
To post a comment you must log in.
I think you could probably introduce a fake clock via a LD_PRELOAD library; https:/ /github. com/wolfcw/ libfaketime would be one such (which I don't think does *exactly* what we want, but could be cribbed from/patched to make something useful to us).
This seems to be a strict improvement on the status quo, though.