try to fix testcases
def test_wrong_select_db_index(cli):
cli.sendline("select 1")
- cli.expect("OK")
+ cli.expect(["OK", "127.0.0.1"])
cli.sendline("select 128")
- cli.expect("DB index is out of range")
+ cli.expect(["DB index is out of range", "127.0.0.1:6379[1]>"])
cli.sendline("select abc")
- cli.expect("invalid DB index")
+ cli.expect(["invalid DB index", "127.0.0.1:6379[1]>"])
cli.sendline("select 15")
cli.expect("OK")
