s4:torture/smb2: test_notify_tcp_dis trigger idle event every 0.25s
authorStefan Metzmacher <metze@samba.org>
Sun, 17 Feb 2013 21:45:32 +0000 (22:45 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 28 Mar 2019 23:09:33 +0000 (23:09 +0000)
This is 1000 times longer than before and is less likely to
change the timing behavior when running under valgrind.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/torture/smb2/notify.c

index 91390385ff2dc2cd1bf74137d54426364100abdc..127f0c685f783731359d0d65c5ff07cab7c78da9 100644 (file)
@@ -1722,7 +1722,7 @@ static bool torture_smb2_notify_tcp_disconnect(
        notify.smb2.in.recursive = true;
        req = smb2_notify_send(tree, &(notify.smb2));
        smb2_transport_idle_handler(tree->session->transport,
-                               tcp_dis_handler, 250, tree);
+                               tcp_dis_handler, 250000, tree);
        tree = NULL;
        status = smb2_notify_recv(req, torture, &(notify.smb2));
        CHECK_STATUS(status, NT_STATUS_LOCAL_DISCONNECT);