Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added slowlog tests

  • Loading branch information...
commit a9b5effb771e870fdc2bc27e2ec0845a64a8bc45 1 parent 82606fa
@WoLpH authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 tests/server_commands.py
View
15 tests/server_commands.py
@@ -1306,3 +1306,18 @@ def test_large_responses(self):
data = ''.join(data)
self.client.set('a', data)
self.assertEquals(self.client.get('a'), data)
+
+ def test_slowlog(self):
+ '''
+ With the HiredisParser this would normally break, the patched
+ version should ensure that slowlog_get works without a problem
+ '''
+ client = self.get_client(redis.StrictRedis)
+ client.slowlog_get()
+ client.slowlog_get(10)
+ client.slowlog_len()
+
+if __name__ == '__main__':
+ import unittest
+ unittest.main()
+
Please sign in to comment.
Something went wrong with that request. Please try again.