Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/e2e/common/large_queries_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ def test_query_with_large_narrow_result_set(self):
assert row[0] == row_id

def test_long_running_query(self):
"""Incrementally increase query size until it takes at least 5 minutes,
"""Incrementally increase query size until it takes at least 4 minutes,
and asserts that the query completes successfully.
"""
minutes = 60
min_duration = 5 * minutes
min_duration = 4 * minutes

duration = -1
scale0 = 10000
Expand All @@ -113,5 +113,5 @@ def test_long_running_query(self):
duration = time.time() - start
current_fraction = duration / min_duration
print("Took {} s with scale factor={}".format(duration, scale_factor))
# Extrapolate linearly to reach 5 min and add 50% padding to push over the limit
# Extrapolate linearly to reach 4 min and add 50% padding to push over the limit
scale_factor = math.ceil(1.5 * scale_factor / current_fraction)
Loading