tests: fix libqtest socket timeouts
authorAndrea Arcangeli <aarcange@redhat.com>
Mon, 13 Jun 2016 11:16:44 +0000 (12:16 +0100)
committerAmit Shah <amit.shah@redhat.com>
Thu, 16 Jun 2016 04:20:07 +0000 (09:50 +0530)
I kept getting timeouts and unix socket accept failures under high
load, the patch fixes it.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Message-id: 1465816605-29488-6-git-send-email-dgilbert@redhat.com
Message-Id: <1465816605-29488-6-git-send-email-dgilbert@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
tests/libqtest.c

index 5c8234826595a4d3e7778fa1a428b8353ed98142..eb00f1392bad081e62f1a6ecbd1a0de65f8f8868 100644 (file)
@@ -26,7 +26,7 @@
 #include "qapi/qmp/qjson.h"
 
 #define MAX_IRQ 256
-#define SOCKET_TIMEOUT 5
+#define SOCKET_TIMEOUT 50
 
 QTestState *global_qtest;