mirror of
https://github.com/Unitech/pm2.git
synced 2026-02-01 16:57:09 +00:00
(test) reduce sleep throttle from 0.1 to 0.3
This commit is contained in:
parent
672627fb5d
commit
5205a28c8d
@ -33,13 +33,13 @@ function spec {
|
||||
|
||||
function ispec {
|
||||
RET=$?
|
||||
sleep 0.1
|
||||
sleep 0.2
|
||||
[ $RET -ne 0 ] || fail "$1"
|
||||
success "$1"
|
||||
}
|
||||
|
||||
function should {
|
||||
sleep 0.1
|
||||
sleep 0.3
|
||||
$pm2 prettylist > /tmp/tmp_out.txt
|
||||
OUT=`cat /tmp/tmp_out.txt | grep -o "$2" | wc -l`
|
||||
[ $OUT -eq $3 ] || fail "$1"
|
||||
@ -47,7 +47,7 @@ function should {
|
||||
}
|
||||
|
||||
function shouldnot {
|
||||
sleep 0.1
|
||||
sleep 0.3
|
||||
$pm2 prettylist > /tmp/tmp_out.txt
|
||||
OUT=`cat /tmp/tmp_out.txt | grep -o "$2" | wc -l`
|
||||
[ $OUT -ne $3 ] || fail "$1"
|
||||
@ -55,7 +55,7 @@ function shouldnot {
|
||||
}
|
||||
|
||||
function exists {
|
||||
sleep 0.1
|
||||
sleep 0.3
|
||||
$pm2 prettylist > /tmp/tmp_out.txt
|
||||
OUT=`cat /tmp/tmp_out.txt | grep -o "$2" | wc -l`
|
||||
[ $OUT -ge 1 ] || fail "$1"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user