]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Revert "tests/qtest/netdev-socket: Raise connection timeout to 120 seconds"
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 4 Jan 2024 16:29:39 +0000 (16:29 +0000)
committerThomas Huth <thuth@redhat.com>
Thu, 11 Jan 2024 10:39:26 +0000 (11:39 +0100)
This reverts commit 0daaf2761f6d268ffaa2d01d450e202e127452b1.

The test was not timing out because of slow execution. It was
timing out due to a race condition leading to the client QEMU
attempting (and fatally failing) to connect before the server
QEMU was listening.

Signed-off-by: "Daniel P. Berrangé" <berrange@redhat.com>
Message-ID: <20240104162942.211458-4-berrange@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/netdev-socket.c

index 7ba1eff12049cf48c6111560c4964b60655ec234..3fc2ac26d0d4d9ece460bd351501e94d2723788c 100644 (file)
@@ -16,7 +16,7 @@
 #include "qapi/qobject-input-visitor.h"
 #include "qapi/qapi-visit-sockets.h"
 
-#define CONNECTION_TIMEOUT    120
+#define CONNECTION_TIMEOUT    60
 
 #define EXPECT_STATE(q, e, t)                             \
 do {                                                      \