mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-03 13:07:24 +00:00
Change test_concurrency test
This commit is contained in:
parent
513f41fddf
commit
c7f8f61d09
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user