Skip to contentSkip to conversation

tests/qemu-iotests: Bump timeout of iothreads-stream test

PATCH In review Saif Abrar 2 participants 2 messages Jan 24, 2024 – Jan 25, 2024

lore
Share & tools
lore

Saif Abrar

author
#0 lore raw

PATCH 1/1 tests/qemu-iotests: Bump timeout of iothreads-stream test

Current value of timeout=0.1 is sometimes too tight. Bump timeout to 0.3 to avoid test failures.

---
 tests/qemu-iotests/tests/iothreads-stream | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/tests/iothreads-stream +1 -1
index 503f221f16..32e46e044e 100755
@@ -63,7 +63,7 @@ with iotests.FilePath('disk1.img') as base1_path, \
     finished = 0
     while True:
         try:
-            ev = vm.event_wait('JOB_STATUS_CHANGE', timeout=0.1)
+            ev = vm.event_wait('JOB_STATUS_CHANGE', timeout=0.3)
             if ev is not None and ev['data']['status'] == 'null':
                 finished += 1
                 # The test is done once both jobs are gone
Signature · 1 line
2.31.1
#1 lore raw

Am 24.01.2024 um 14:35 hat Saif Abrar geschrieben:

Quoted 4 lines

Current value of timeout=0.1 is sometimes too tight. Bump timeout to 0.3 to avoid test failures.

This is not the real problem. The real problem is that the timeout makes the test fail because we're catching the wrong TimeoutError class. What it really should do is issue another query-jobs and go back to waiting.

I actually sent a patch earlier today to fix this:

https://lists.gnu.org/archive/html/qemu-block/2024-01/msg00353.html

Kevin