Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various fixes #188

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion RLTest/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,8 @@ def expect(self, *query, **options):
return Query(self, *query, **options)

def cmd(self, *query, **options):
res = self.con.execute_command(*query, **options)
conn = options.pop('conn', self.con)
res = conn.execute_command(*query, **options)
self.debugPrint('query: %s, result: %s' % (repr(query), repr(res)))
return res

Expand Down
2 changes: 2 additions & 0 deletions RLTest/redis_std.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ def startEnv(self, masters = True, slaves = True):

self.envIsUp = self.masterProcess is not None or self.slaveProcess is not None
self.envIsHealthy = self.masterProcess is not None and (self.slaveProcess is not None if self.useSlaves else True)
if not self.envIsUp or not self.envIsHealthy:
raise Exception('Failed to start environment')

def _isAlive(self, process):
if not process:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "RLTest"
version = "0.5.12"
version = "0.5.13"
description="Redis Labs Test Framework, allow to run tests on redis and modules on a variety of environments"
authors = ["RedisLabs <[email protected]>"]
license = "BSD-3-Clause"
Expand Down