2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 10:07:12 +00:00

tests: regression: increase unix socket test timeout

The tests on slower systems are occassionally timing out leading to
inconsistent pass/fail runs. The time out failure depending on which
test it occurs in can result in false passes, or failres.

Double the timeout, which hopefully will be enough to avoid the
timeout issue without making the tests wait too long.

Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen 2025-04-08 04:26:24 -07:00
parent 08f9466d1c
commit 2c784709b2

View File

@ -41,7 +41,7 @@ int set_sock_io_timeo(int sock)
socklen_t tv_len = sizeof(tv); socklen_t tv_len = sizeof(tv);
int rc; int rc;
tv.tv_sec = 1; tv.tv_sec = 2;
tv.tv_usec = 0; tv.tv_usec = 0;
rc = setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &tv, tv_len); rc = setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &tv, tv_len);