Give intents a little more time to complete
Change-Id: Ibe69a777105198ab42b9408f9fa9bc1e2bd93696
diff --git a/tools/test/bin/onos-check-intent b/tools/test/bin/onos-check-intent
index 37558cc..0cc6c90 100755
--- a/tools/test/bin/onos-check-intent
+++ b/tools/test/bin/onos-check-intent
@@ -26,7 +26,7 @@
onos $target "onos:intents" | tee $aux
if [ -z "$numIntentsExpected" ]; then
( cat $aux | grep "key=$2" | grep "state=$3" ) && cat $aux && exit 0
- else
+ else
# exit 0 only if expected number of intents (with required key)
# are present and all intents match state (if expected no. of intents > 0)
numIntents=`grep "key=$2" $aux | wc -l`
@@ -35,8 +35,8 @@
[ $numIntents -eq $numIntentsOfState ] \
&& [ $numIntents -eq $numIntentsExpected ] \
&& cat $aux && exit 0
- fi
- sleep 1
+ fi
+ sleep 2
done
cat $aux