bugfix: testcase in transaction
@@ -4,11 +4,10 @@ import pexpect
def test_trasaction_rprompt(cli):
cli.sendline("multi")
- cli.expect("OK")
- cli.expect("transaction")
+ cli.expect(["OK", "transaction", "127.0.0.1"])
cli.sendline("get foo")
- cli.expect("QUEUED")
+ cli.expect(["QUEUED", "127.0.0.1"])
cli.sendline("EXEC")
@@ -16,8 +15,7 @@ def test_trasaction_rprompt(cli):
def test_trasaction_syntax_error(cli):
cli.sendline("multi")
cli.sendline("get foo 1")
- cli.expect("wrong number of arguments for 'get' command")
- cli.expect("transaction")
+ cli.expect(["wrong number of arguments for 'get' command", "transaction"])
cli.sendline("EXEC")
cli.expect("Transaction discarded because of previous errors.")
