From: Jeremy Allison Date: Fri, 13 Mar 2020 22:45:16 +0000 (-0700) Subject: s3: tests: Slight tweak to the force-close share test. X-Git-Tag: ldb-2.2.0~1443 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=566658d914176c41942e3c6aba404ae369aeb123;p=thirdparty%2Fsamba.git s3: tests: Slight tweak to the force-close share test. Turns out on a fast desktop machine 10MB is too small, and by the time we've done the 'sleep 1' to make sure the smbclient got scheduled and started processing the 'put' command, it's already done. Tweak the file size to be 20MB from 10MB. 10MB seems to work reliably on gitlab-ci and on sn-devel, but making the put size 20MB makes sure it's still in flight when we force-close the share, even on a fast desktop box. 20MB shouldn't be too burdonsome even on ci VM's. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14301 Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/script/tests/test_force_close_share.sh b/source3/script/tests/test_force_close_share.sh index ebfff5af77c..da78b5a752e 100755 --- a/source3/script/tests/test_force_close_share.sh +++ b/source3/script/tests/test_force_close_share.sh @@ -32,7 +32,7 @@ mkfifo smbclient-stdin smbclient-stdout smbclient-stderr # Create a large-ish testfile rm testfile -head -c 10MB /dev/zero >testfile +head -c 20MB /dev/zero >testfile CLI_FORCE_INTERACTIVE=1; export CLI_FORCE_INTERACTIVE