Closed jettify closed 6 years ago
I've fixed script commands and added tests. Please review.
Is it possible to have ResponseError risen, if lua script fails? Currently, yield gen.Task(self.client.eval, script) returns ResponseError object. Looks like following line is responsible for this: https://github.com/leporo/tornado-redis/blob/master/tornadoredis/client.py#L487 There are even tests, to ensure this behavior: https://github.com/leporo/tornado-redis/blob/d0caac2a99fe052a585a8367cc2961f5cb113c93/tornadoredis/tests/test_leaks.py#L25-L26
ResponseError
yield gen.Task(self.client.eval, script)
update: I had to increase timeout for async tests because _scriptkill command kills _lua_s infinite loop in 5.005sec ...
I've fixed script commands and added tests. Please review.
Is it possible to have
ResponseError
risen, if lua script fails? Currently,yield gen.Task(self.client.eval, script)
returnsResponseError
object. Looks like following line is responsible for this: https://github.com/leporo/tornado-redis/blob/master/tornadoredis/client.py#L487 There are even tests, to ensure this behavior: https://github.com/leporo/tornado-redis/blob/d0caac2a99fe052a585a8367cc2961f5cb113c93/tornadoredis/tests/test_leaks.py#L25-L26update: I had to increase timeout for async tests because _scriptkill command kills _lua_s infinite loop in 5.005sec ...