iotests: Increase pause_wait() timeout
authorKevin Wolf <kwolf@redhat.com>
Fri, 13 Mar 2020 08:36:17 +0000 (09:36 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Sat, 21 Mar 2020 22:37:32 +0000 (22:37 +0000)
Waiting for only 1 second proved to be too short on a loaded system,
resulting in false positives when testing pull requests. Increase the
timeout a bit to make this less likely.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20200313083617.8326-4-kwolf@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
tests/qemu-iotests/iotests.py

index b859c303a2a75543e1b4cc498b442e7bb84cca47..7bc4934cd23fa71da2e43a56f7124f9a537499c3 100644 (file)
@@ -925,7 +925,7 @@ class QMPTestCase(unittest.TestCase):
         self.assert_qmp(event, 'data/type', 'mirror')
 
     def pause_wait(self, job_id='job0'):
-        with Timeout(1, "Timeout waiting for job to pause"):
+        with Timeout(3, "Timeout waiting for job to pause"):
             while True:
                 result = self.vm.qmp('query-block-jobs')
                 found = False