diff --git a/tests/integration/hook-shift_ts.sh b/tests/integration/hook-shift_ts.sh index 869ece6db..503d17da0 100755 --- a/tests/integration/hook-shift_ts.sh +++ b/tests/integration/hook-shift_ts.sh @@ -24,17 +24,17 @@ STATS_FILE=$(mktemp) -OFFSET=10 +OFFSET=-10 EPSILON=0.05 villas-signal sine -l 10 -r 10 | villas-hook shift_ts offset=${OFFSET} | villas-hook stats format=\"json\" output=\"${STATS_FILE}\" > /dev/null -#jq .owd ${STATS_FILE} +jq .owd ${STATS_FILE} -jq -e ".owd.mean - ${OFFSET} | length < ${EPSILON}" ${STATS_FILE} > /dev/null +jq -e ".owd.mean + ${OFFSET} | length < ${EPSILON}" ${STATS_FILE} > /dev/null RC=$? rm ${STATS_FILE} -exit $RC \ No newline at end of file +exit $RC