From 373ac884ddbba86b7f205d2f315461b7be9de832 Mon Sep 17 00:00:00 2001
From: Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
Date: Wed, 10 May 2017 13:07:23 +0200
Subject: [PATCH] fix sign in shift_ts hook integration test

---
 tests/integration/hook-shift_ts.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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