Skip to content

Commit 7b03d86

Browse files
authored
Merge pull request #1385 from dbcli/RW/double-editor-command-test-timeouts
Double editor-command test timeouts to 4 seconds
2 parents f8650d4 + 799aa32 commit 7b03d86

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Internal
55
--------
66
* Add mypy to Pull Request template.
77
* Enable flake8-bugbear lint rules.
8+
* Fix flaky editor-command tests in CI.
89

910

1011
1.40.0 (2025/10/14)

test/features/steps/iocommands.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ def step_edit_file(context):
1414
if os.path.exists(context.editor_file_name):
1515
os.remove(context.editor_file_name)
1616
context.cli.sendline(f"\\e {os.path.basename(context.editor_file_name)}")
17-
wrappers.expect_exact(context, 'Entering Ex mode. Type "visual" to go to Normal mode.', timeout=2)
18-
wrappers.expect_exact(context, "\r\n:", timeout=2)
17+
wrappers.expect_exact(context, 'Entering Ex mode. Type "visual" to go to Normal mode.', timeout=4)
18+
wrappers.expect_exact(context, "\r\n:", timeout=4)
1919

2020

2121
@when('we type "{query}" in the editor')
2222
def step_edit_type_sql(context, query):
2323
context.cli.sendline("i")
2424
context.cli.sendline(query)
2525
context.cli.sendline(".")
26-
wrappers.expect_exact(context, "\r\n:", timeout=2)
26+
wrappers.expect_exact(context, "\r\n:", timeout=4)
2727

2828

2929
@when("we exit the editor")
3030
def step_edit_quit(context):
3131
context.cli.sendline("x")
32-
wrappers.expect_exact(context, "written", timeout=2)
32+
wrappers.expect_exact(context, "written", timeout=4)
3333

3434

3535
@then('we see "{query}" in prompt')

0 commit comments

Comments
 (0)