Skip to content

Commit 8ee3beb

Browse files
committed
Fixes JSON syntax, topic is jq:able now
1 parent 8eb4a4d commit 8ee3beb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

events-kube/test/events-topic.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ data:
1515
exec >> /tmp/testlog
1616
exec 2>&1
1717
18-
PREVIOUS=$(sha1sum /tmp/event || echo "")
18+
PREVIOUS=$(sha1sum /tmp/event 2>/dev/null || echo "")
1919
kafkacat -b $BOOTSTRAP -t $TOPIC -C -o -1 -c 1 | tee /tmp/event
2020
CURRENT=$(sha1sum /tmp/event)
21-
[ "$PREVIOUS" == "$CURRENT" ] && echo "{\"test-status\”: \"No new event in $TOPIC\"}" && exit 1
21+
[ "$PREVIOUS" == "$CURRENT" ] && echo "{\"test-result\": \"No new event in $TOPIC\"}" && exit 1
2222
2323
exit 0
2424

0 commit comments

Comments
 (0)