From 7c6fc350c24bff262e6a0434658fcb2c1caafaa3 Mon Sep 17 00:00:00 2001 From: Stephen C Phillips <steve@scphillips.com> Date: Sun, 18 Feb 2018 21:23:17 +0000 Subject: [PATCH] Adds 5 second sleep so that kapacitor has time to start --- test/streaming/setup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/streaming/setup.sh b/test/streaming/setup.sh index 7490d60..ee46df6 100755 --- a/test/streaming/setup.sh +++ b/test/streaming/setup.sh @@ -33,6 +33,10 @@ echo $TEST_DIR"/kapacitor.conf" cp $TEST_DIR/kapacitor.conf /etc/kapacitor/kapacitor.conf systemctl start kapacitor +# wait for kapacitor to restart +# TODO: do this better +sleep 5 + # Set up Influx data source curl -i -X POST -H "Content-Type: application/json" http://localhost:8888/chronograf/v1/sources -d @$TEST_DIR/influx.json -- GitLab