Skip to content

Commit

Permalink
add -watch integration test for redis
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Fisher committed Mar 23, 2015
1 parent 849486b commit e9c5c8f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion integration/redis/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@ redis-cli set /prefix/database/username confd
redis-cli set /prefix/upstream/app1 10.0.1.10:8080
redis-cli set /prefix/upstream/app2 10.0.1.11:8080

# Run confd
# Run confd with --watch, expecting it to fail
confd -onetime -verbose -debug -confdir ./integration/confdir -interval 5 -backend redis -node 127.0.0.1:6379 -watch
if [ $? -eq 0 ]
then
exit 1
fi
confd -onetime -verbose -debug -confdir ./integration/confdir -interval 5 -backend redis -node 127.0.0.1:6379

0 comments on commit e9c5c8f

Please sign in to comment.