mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Add some comment on the purpose
This commit is contained in:
@@ -25,6 +25,9 @@ fi
|
||||
|
||||
echo "Running $n times with $processors cores"
|
||||
|
||||
# The purpose here is to occupy the CPU (yes command is not multi-threaded and it occupies only one core)
|
||||
# Start one process for each core, and then simulating a very busy CI environment with a 100% CPU load
|
||||
# increasing the chance of race conditions when executing specs.
|
||||
for i in `seq $processors`; do
|
||||
yes > /dev/null &
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user