@@ -64,15 +64,13 @@ def step_see_prompt(context):
6464 user = context .conf ['user' ]
6565 host = context .conf ['host' ]
6666 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 ))
7068
7169
7270@then ('we see help output' )
7371def step_see_help (context ):
7472 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 )
7674
7775
7876@then ('we see database created' )
@@ -96,10 +94,7 @@ def step_see_db_dropped_no_default(context):
9694 context .currentdb = None
9795
9896 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 ))
10398
10499
105100@then ('we see database connected' )
0 commit comments