]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbtorture: adjust "base.delaywrite.delayed update of write time 5b" for modern SMB...
authorRalph Boehme <slow@samba.org>
Thu, 6 Mar 2025 17:48:59 +0000 (18:48 +0100)
committerRalph Boehme <slow@samba.org>
Thu, 27 Mar 2025 05:37:44 +0000 (05:37 +0000)
No need to run the loops for so long with modern write time behaviour.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13594

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/basic/delaywrite.c

index f4ee42a884fdebfa363d05f3e7c0b837874ba073..cb9bfcaa409ec7416ce47068d6910ad7a13f5ba1 100644 (file)
@@ -2169,9 +2169,9 @@ static bool test_delayed_write_update5b(struct torture_context *tctx,
        GET_INFO_BOTH(finfo2,pinfo2);
        COMPARE_WRITE_TIME_LESS(finfo2, finfo1);
 
-       /* make sure the 2 second delay from the first write are canceled */
+       /* make sure there's no delayed update pending */
        start = timeval_current();
-       end = timeval_add(&start, 15 * sec, 0);
+       end = timeval_add(&start, 4 * sec, 0);
        while (!timeval_expired(&end)) {
 
                /* get the times after the first write */
@@ -2196,7 +2196,7 @@ static bool test_delayed_write_update5b(struct torture_context *tctx,
 
        /* Do any further write (truncates) update the write time ? */
        start = timeval_current();
-       end = timeval_add(&start, 15 * sec, 0);
+       end = timeval_add(&start, 4 * sec, 0);
        while (!timeval_expired(&end)) {
                /* do a write */
                torture_comment(tctx, "Do a truncate write on the file handle\n");