Change test_concurrency test

This commit is contained in:
Takeshi Nakatani 2019-07-15 07:16:01 +00:00 committed by Andrew Gaul
parent 513f41fddf
commit c7f8f61d09

View File

@ -532,17 +532,17 @@ function test_overwrite_existing_file_range {
function test_concurrency { function test_concurrency {
describe "Test concurrent updates to a directory" describe "Test concurrent updates to a directory"
for i in `seq 10`; do echo foo > $i; done for i in `seq 5`; do echo foo > $i; done
for process in `seq 2`; do for process in `seq 10`; do
for i in `seq 100`; do for i in `seq 5`; do
file=$(ls | sed -n "$(($RANDOM % 10 + 1))p") file=$(ls `seq 5` | sed -n "$(($RANDOM % 5 + 1))p")
cat $file >/dev/null || true cat $file >/dev/null || true
rm -f $file rm -f $file
echo foo > $i || true echo foo > $file || true
done & done &
done done
wait wait
rm -f `seq 100` rm -f `seq 5`
} }
function test_open_second_fd { function test_open_second_fd {