mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-01-22 09:21:38 +00:00
8156e2997a
* Fix waitFor() should not exit earlier last callback will be scheduled. * Tune tests to use less memory. * Fix `testutils`. There is no more last poll() needed. * Update chronos/internal/asyncfutures.nim --------- Co-authored-by: Jacek Sieka <jacek@status.im>
29 lines
570 B
Bash
Executable File
29 lines
570 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "$1" == "stdin" ]; then
|
|
read -r inputdata
|
|
echo "STDIN DATA: $inputdata"
|
|
elif [ "$1" == "timeout1" ]; then
|
|
sleep 1
|
|
exit 1
|
|
elif [ "$1" == "timeout2" ]; then
|
|
sleep 2
|
|
exit 2
|
|
elif [ "$1" == "timeout10" ]; then
|
|
sleep 10
|
|
elif [ "$1" == "bigdata" ]; then
|
|
for i in {1..100000}
|
|
do
|
|
echo "ALICEWASBEGINNINGTOGETVERYTIREDOFSITTINGBYHERSISTERONTHEBANKANDO"
|
|
done
|
|
elif [ "$1" == "envtest" ]; then
|
|
echo "$CHRONOSASYNC"
|
|
elif [ "$1" == "noterm" ]; then
|
|
trap -- '' SIGTERM
|
|
while true; do
|
|
sleep 1
|
|
done
|
|
else
|
|
echo "arguments missing"
|
|
fi
|