]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tsocket: Increase tcp_user_timeout max_loops
authorAndrew Bartlett <abartlet@samba.org>
Wed, 8 Mar 2023 21:06:26 +0000 (10:06 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 14 Mar 2023 06:16:30 +0000 (06:16 +0000)
Often, on rackspace GitLab CI runners, we get:

UNEXPECTED(failure): samba.unittests.tsocket_tstream.test_tstream_more_tcp_user_timeout_spin(none)
REASON: Exception: Exception: 0xf == 0xf
../../lib/tsocket/tests/test_tstream.c:405: error: Failure!

This allows us more spins before we fail the test.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15328
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
lib/tsocket/tests/test_tstream.c

index a920e671cda3ec98a97e0afff739247db0556207..47008bb8bf8e6f5d9d1629ce71d759d9efc96cf4 100644 (file)
@@ -322,7 +322,7 @@ static void test_tstream_server_spin_client_tcp_user_timeout(struct socket_pair
        rc = write(sp->socket_client, TEST_STRING, sizeof(TEST_STRING));
        assert_return_code(rc, errno);
        sp->expected_errno = ETIMEDOUT;
-       sp->max_loops = 15;
+       sp->max_loops = 30;
 }
 
 static void test_tstream_server_spin_client_both_timer(struct tevent_context *ev,