]> git.ipfire.org Git - thirdparty/libvirt.git/commit
mock: qemuDomainGetUnplugTimeout: Decrease timeout
authorPeter Krempa <pkrempa@redhat.com>
Thu, 23 Apr 2020 08:33:58 +0000 (10:33 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 23 Apr 2020 13:57:36 +0000 (15:57 +0200)
commitb8c02497b3562292c55506945bd69aa04ebee981
tree793d9d37016b67b9676b77d04ddd328b423c33d4
parentf1ac096ea61d797e51180871d39ed29114d72f53
mock: qemuDomainGetUnplugTimeout: Decrease timeout

We always queue the DEVICE_DELETED events before successful return from
the command so that tests are reliable. This means we can decrease the
unplug timeout as it's guaranteed to be executed in correct order.

According to my testing it shaves off ~450ms of test run:

real 0m0.721s

vs.

real 0m0.259s

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/qemuhotplugmock.c