From: Andreas Schneider Date: Tue, 27 Sep 2016 16:53:44 +0000 (+0200) Subject: s4-torture: Fix reauth tests with smaller clockskew grace time X-Git-Tag: ldb-1.1.30~374 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a43c8d6c732e242860051ffceecb1773ee5ad51;p=thirdparty%2Fsamba.git s4-torture: Fix reauth tests with smaller clockskew grace time Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlet Reviewed-by: Jeremy Allison --- diff --git a/source4/torture/raw/session.c b/source4/torture/raw/session.c index 6938c88f95d..26b93cca512 100644 --- a/source4/torture/raw/session.c +++ b/source4/torture/raw/session.c @@ -304,8 +304,8 @@ static bool test_session_expire1(struct torture_context *tctx) torture_assert_ntstatus_ok_goto(tctx, status, ret, done, "raw_fileinfo failed"); - torture_comment(tctx, "sleep 5 seconds\n"); - smb_msleep(5*1000); + torture_comment(tctx, "sleep 10 seconds\n"); + smb_msleep(10*1000); } /* @@ -343,8 +343,8 @@ static bool test_session_expire1(struct torture_context *tctx) torture_assert_ntstatus_ok_goto(tctx, status, ret, done, "raw_fileinfo failed"); - torture_comment(tctx, "sleep 5 seconds\n"); - smb_msleep(5*1000); + torture_comment(tctx, "sleep 10 seconds\n"); + smb_msleep(10*1000); torture_comment(tctx, "query info => EXPIRED\n"); ZERO_STRUCT(qfinfo.access_information.out); diff --git a/source4/torture/smb2/session.c b/source4/torture/smb2/session.c index e35ec85c6a3..e3c5676a80a 100644 --- a/source4/torture/smb2/session.c +++ b/source4/torture/smb2/session.c @@ -1125,8 +1125,8 @@ static bool test_session_expire1(struct torture_context *tctx) torture_assert_ntstatus_ok_goto(tctx, status, ret, done, "smb2_getinfo_file failed"); - torture_comment(tctx, "sleep 5 seconds\n"); - smb_msleep(5*1000); + torture_comment(tctx, "sleep 10 seconds\n"); + smb_msleep(10*1000); torture_comment(tctx, "query info => EXPIRED\n"); ZERO_STRUCT(qfinfo.access_information.out);