Skip to content

Commit

Permalink
Fix redis key test
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Jan 20, 2019
1 parent fae8cda commit ffe2062
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions metricbeat/tests/system/test_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ def test_key(self):
"""

# At least one event must be inserted so db stats exist
host, port = self.compose_host().split(":")
r = redis.StrictRedis(
host=self.compose_hosts()[0],
port=os.getenv('REDIS_PORT', '6379'),
host=host,
port=port,
db=0)
r.flushall()
r.rpush('list-key', 'one', 'two', 'three')
Expand Down

0 comments on commit ffe2062

Please sign in to comment.