@@ -64,15 +64,13 @@ def step_see_prompt(context):
64
64
user = context .conf ['user' ]
65
65
host = context .conf ['host' ]
66
66
dbname = context .currentdb
67
- wrappers .expect_exact (context , '{0}@{1}:{2}> ' .format (
68
- user , host , dbname ), timeout = 5 )
69
- context .atprompt = True
67
+ wrappers .wait_prompt (context , '{0}@{1}:{2}> ' .format (user , host , dbname ))
70
68
71
69
72
70
@then ('we see help output' )
73
71
def step_see_help (context ):
74
72
for expected_line in context .fixture_data ['help_commands.txt' ]:
75
- wrappers .expect_exact (context , expected_line + ' \r \n ' , timeout = 1 )
73
+ wrappers .expect_exact (context , expected_line , timeout = 1 )
76
74
77
75
78
76
@then ('we see database created' )
@@ -96,10 +94,7 @@ def step_see_db_dropped_no_default(context):
96
94
context .currentdb = None
97
95
98
96
wrappers .expect_exact (context , 'Query OK, 0 rows affected' , timeout = 2 )
99
- wrappers .expect_exact (context , '{0}@{1}:{2}> ' .format (
100
- user , host , database ), timeout = 5 )
101
-
102
- context .atprompt = True
97
+ wrappers .wait_prompt (context , '{0}@{1}:{2}>' .format (user , host , database ))
103
98
104
99
105
100
@then ('we see database connected' )
0 commit comments