Skip to content

Commit da7efdb

Browse files
committed
Tests: Save As: Tune timeouts
1 parent 3cf53a1 commit da7efdb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/crystal/tests/test_untitled_projects.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ async def test_when_save_as_project_and_destination_filesystem_writable_generall
702702
_untitled_project() as project, \
703703
RealMainWindow(project) as rmw, \
704704
_temporary_directory_on_new_filesystem() as save_dir:
705-
mw = await MainWindow.wait_for(timeout=0)
705+
mw = await MainWindow.wait_for(timeout=1)
706706

707707
atom_feed_url = sp.get_request_url('https://xkcd.com/atom.xml')
708708

@@ -958,7 +958,7 @@ async def test_when_save_as_untitled_project_with_corrupted_database_then_fails_
958958
_untitled_project() as project, \
959959
xtempfile.TemporaryDirectory() as tmp_dir:
960960
rmw = RealMainWindow(project)
961-
mw = await MainWindow.wait_for(timeout=0)
961+
mw = await MainWindow.wait_for(timeout=1)
962962

963963
# Download a resource revision to have some data
964964
url = sp.get_request_url('https://xkcd.com/atom.xml')
@@ -1012,7 +1012,7 @@ async def test_when_save_as_titled_project_with_corrupted_database_then_fails_wi
10121012
# Reopen the project and perform Save As with corruption
10131013
with Project(original_project_path) as project, \
10141014
RealMainWindow(project) as rmw:
1015-
mw = await MainWindow.wait_for(timeout=0)
1015+
mw = await MainWindow.wait_for(timeout=1)
10161016

10171017
save_path = os.path.join(tmp_dir, 'CorruptedDBProject.crystalproj')
10181018

0 commit comments

Comments
 (0)