Skip to content

Commit b8ad3f1

Browse files
committed
Change test_database_summary to pass
1 parent e7ca7d3 commit b8ad3f1

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

tests/mock_vws/test_database_summary.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _wait_for_image_numbers(
3232
processing_images: int,
3333
) -> None:
3434
"""
35-
Wait up to 500 seconds (arbitrary, though we saw timeouts with 300 seconds)
35+
Wait up to 700 seconds (arbitrary, though we saw timeouts with 500 seconds)
3636
for the number of images in various categories to match the expected
3737
number.
3838
@@ -60,7 +60,7 @@ def _wait_for_image_numbers(
6060
"processing_images": processing_images,
6161
}
6262

63-
maximum_wait_seconds = 500
63+
maximum_wait_seconds = 700
6464
start_time = time.monotonic()
6565

6666
# If we wait for all requirements to match at the same time,
@@ -97,14 +97,6 @@ def _wait_for_image_numbers(
9797

9898
time.sleep(sleep_seconds)
9999

100-
# This break makes the entire test invalid.
101-
# However, we have found that without this Vuforia is flaky.
102-
# We have waited over 10 minutes for the summary to change and
103-
# that is not sustainable in a test suite.
104-
# That might be because we think some images will go into a particular
105-
# state but they don't.
106-
break
107-
108100

109101
@pytest.mark.usefixtures("verify_mock_vuforia")
110102
class TestDatabaseSummary:

0 commit comments

Comments
 (0)