summary refs log tree commit diff stats
path: root/tests/qtest/netdev-socket.c
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2024-01-04 16:29:39 +0000
committerThomas Huth <thuth@redhat.com>2024-01-11 11:39:26 +0100
commita298293866b277cb40ab24dcedda36c2b89ed2ab (patch)
treed47921bcadf53407b1c6a71ec5ba96c9d4634261 /tests/qtest/netdev-socket.c
parent1a2253c71281c04acf1624401a2590fad1e2285b (diff)
downloadfocaccia-qemu-a298293866b277cb40ab24dcedda36c2b89ed2ab.tar.gz
focaccia-qemu-a298293866b277cb40ab24dcedda36c2b89ed2ab.zip
Revert "tests/qtest/netdev-socket: Raise connection timeout to 120 seconds"
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>
Diffstat (limited to 'tests/qtest/netdev-socket.c')
-rw-r--r--tests/qtest/netdev-socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/netdev-socket.c b/tests/qtest/netdev-socket.c
index 7ba1eff120..3fc2ac26d0 100644
--- a/tests/qtest/netdev-socket.c
+++ b/tests/qtest/netdev-socket.c
@@ -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 {                                                      \